Voting application with 2 Load Balanced Web Services, Backend Service, and RDS! #1745
efekarakus
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
The https://github.com/copilot-example-voting-app application satisfies the following architecture:
It is composed of three different microservices:
How to run this application?
You can clone any of these repositories and run
copilot init
to start them.I recommend starting out with the "api" microservice so that you initialize a database first.
How is the database defined?
The database is created as an Amazon Aurora Serverless PostgreSQL database defined here: https://github.com/copilot-example-voting-app/api/blob/main/copilot/api/addons/db.template.yaml
It leverages Copilot's Additional AWS resources feature.
How do the frontend services communicate with the "api" service?
Both frontend services "vote" and "results" use service discovery to communicate with the backend "api" service.
Here are some examples:
Beta Was this translation helpful? Give feedback.
All reactions