Skip to content

Sohan-MH/Cloud-Computing-project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Breaking down monoliths 🪨⛏️

This problem statement has two objectives:

  • Get familiar with reading error stack trace and debugging code.
  • Convert a monolith architecture based docker-compose application into a microservices based architecture.

Requirements:

  • docker and docker-compose. Follow the guides based on your operating system.
  • Internet. Pull docker image python:3.8-alpine beforehand to avoid connectivity issues.

Screenshots of Docker and Web Application

Web Application Before Submit

Web Application After Submit


Starting Services

Monolith architecture diagram

Build & Run

# under the microservices directory
# NOTE: For any code changes to be reflected, the build command must be rerun, and then up
docker-compose build
# run without the -d flag incase you want to observe the logs
docker-compose up -d

To stop the services in detached mode

docker-compose down

Microservices-based architecture diagram

The diagram only shows the services already defined within the microservice architecture for visualization purposes. You still need to add services of your own.

Miscellaneous

  • Directory structure of additional arithmetic microservices you will be adding:
├── <name of the service>
│   ├── Dockerfile           # same as landing/Dockerfile
│   ├── app
│   │   ├── app.py           # TODO: by yourself
│   │   └── requirements.txt # same as landing/app/requirements.txt
│   │  

Note

Since the docker services are running on the local machine, we will have to disable CORS which is enabled by default in every browser. To disable CORS in the Opera browser, run this command:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 44.2%
  • HTML 39.1%
  • Dockerfile 16.7%