This challenge addresses a web application with a microservice architecture to calculate the acceleration of an object.
- The application contains 3 microservices
- Each microservice takes care of only one arithmetic operation
- The microservices take inputs from the URL query form and return the result in JSON format
- The microservices are not stable and can stop serving requests
acceleration-dvcalculates𝚫v=vf-vi
curl http://127.0.0.1:3001/dv?vf=200&vi=5
{"dv":195}acceleration-acalculatesa=𝚫v/t
curl http://127.0.0.1:3002/a?dv=200&t=5
{"a":40}acceleration-calccoordinates request toacceleration-dvandacceleration-aservices
curl http://127.0.0.1:3000/calc?vf=200&vi=5&t=123
{"a":1.5853658536585367}- Using Helm, write the necessary Kubernetes deployment and service files that can be used to create the full application, running 2 instances of each microservice.
- Only
/calcofacceleration-calcmicroservices can be available outside of the kubernetes cluster. - Run the application on a kubernetes cluster like Minikube or Docker for Mac.
- Make sure the application is stable.
- Please do not change a code in services.
- Microservices are written on Typescript and Node.js version 10.14.2
- You would need to setup
yarn - Run
yarn installto setup all required components - Run
yarn buildto build production ready code - Run
yarn devto run a service in dev environment - Run
yarn startto run a service in production
- The challenge is on!
- Send us an email with a link to repository when you finish the assesment.
- Please complete your working solution within 5 days of receiving this challenge.
