- Loose Coupling
- High Cohesion
- Change is Local
- It is Easy to Remove
- Rigidity ( A -> B -> C . something hardcoded in C )
- Fragility
- Immobility
Note :
JSON
file make sure all new lines , blank spaces are removed.Env : https://labs.play-with-docker.com/
Snapshot of the application containing all the libraries , supporting files etc.,
## docker-compose.yml (start kafka Broker and Zookeeper)
#docker-compose up -d #detach mode
version: '3'
services:
zookeeper:
from fastapi import FastAPI,Request | |
from pydantic import BaseModel | |
import uvicorn | |
from smslottery import validate_bet | |
from fastapi.middleware.cors import CORSMiddleware | |
origins = ["*"] | |
class Data(BaseModel): | |
game:str | |
text:str |