The requirements and specifications for the backend are as follows:
- A Redis-based backend data store that's used to store the voting data.
- Must be highly secure and not exposed outside the Kubernetes network; only the frontend application should be able to access the data.
- Scalable and always available.
- In the case of non-cache databases such as MySQL, another requirement could be having persistent storage.
Let's look at the solution:
- Similar to the frontend, we'll use deployment to deploy pods to provide the same benefits.
- We'll use a Kubernetes service to expose the application; however, this will be configured so that it's only accessible inside the AKS cluster.
- The deployment will ensure that it is always available and easily ...