https://github.com/kenec/service-2
Using this repo as a sample microservice for ECS deployment
https://github.com/kenec/service-2
Last synced: about 1 year ago
JSON representation
Using this repo as a sample microservice for ECS deployment
- Host: GitHub
- URL: https://github.com/kenec/service-2
- Owner: Kenec
- Created: 2019-03-26T07:52:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T13:58:27.000Z (about 7 years ago)
- Last Synced: 2025-02-13T10:35:08.220Z (over 1 year ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# time-app
This is a microservice application that displays time in UTC
## Architecture
The service is hosted on AWS ECS. The simplified architectural diagram is shown below:

The time-app service is not publicy accessible and can be reached through the internal application loadbalancer.
The opstest service sits in a public subnet talks to the time-app srvice through its internal loadbalancer.
Both services can scale in and out when the CPU is above 80% or 40% respectively.
## Pipeline
The pipeline used in this setup is AWS Codepipeline. The pipeline can deploy to any of the four environment viz:
- develop == develop branch on git
- Staging == staging branch on git
- Accepatnce == acceptance branch on git
- Production == master branch on git
With AWS Codepipeline, we can deploy to another region simultenously.
## Setup Project on Local
* install Docker and Node
* Clone the repository `git clone git@github.com:Kenec/service-2.git`
* Navigate to the directory of the project and run `Docker build -t time-app .`
* Run the docker container with `Docker run -p 3000:3000 opstest`
## Issues
To report an issue or give feedback, Click link
[Issues and Feedback](https://github.com/Kenec/service-1/issues)
## License
[MIT License](https://github.com/Kenec/service-1)