configuration-source: https://github.com/mehdihasan/cloud-config-bd-tolls
- Developing the Config server and app
- First, an git based config server
- On the config server, we have @EnableConfigServer, set the app port, git property uri, search path and performance test git repos
- Then, we have created a cloud config app
- At the config app, we have set the application name, active profile and the cloud config server uri
- We have enabled basic security for the config server
- Then we have enabled encryption in the server side and decryption in the client side. We may need some value to be encrypted which may can only readable by the client app.
- Developing a Serverless app
- Creating the environment:
- Install a mysql server in docker on port 3301. Created a database named “cloud-native-app-ps2”
- Create a RabbitMQ server and run the RabbitMQ management plugin as well command
docker run -d --name rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management
- toll process task. Which is a short lived task lived on my local maven repo (server less technology.
- Second, created a Task-sink app which will listen to the bus and kick off the task.
- Third, modifying the config-app to make a TaskIntake app which to be used to raise up the TaskSink app.
- Now making a POST request to localhost:8080/tasks (with body of station100,MEHDI309,2019-11-21T01:28:22) will live the task in you can find the updated values at the mysql database.
- Creating the environment:
- …