I have a bunch of api calls in my spring boot service. Let's say,
http://localhost:8080/me/customize
http://localhost:8080/me/addItem
http://localhost:8080/me/revokeItem
When the user hit's http://localhost:8080/me/customize api, then I have to trigger a docker instance(and execute some code inside the spawned docker instance) and provide a unique id to the user. The user will use that unique id to hit the other apis.
This process should happen for all the users. Let us say that 100 users hit the customize api, i need to have 100 docker instances with a unique identifier tied to each docker instance and the user should use that unique id to communicate with the docker instance from there onwards.
Do I need to write java code to handle the docker spawning and mapping the unique id to each docker instance?
I am a tester and this is my first time dealing with development stuff. Could any of you point me in the right direction or some sort of tutorial may be? I have done googling, and still didn't found any answer.