I am a newbie to Docker & microservices, and trying to breakdown current monolithic services into smaller microservices using Docker containers. Idea is to logically divide monoliths into smaller independent modules as microservices and place each into separate Docker containers and manage it via Kubernetes for scaling.
Caveat is these services are either connected to third parties via REST or to mission critical voluminous databases. These dont have any local DB with them so i can't have any local microservice DB in bounded context.
I am trying to figure out best approach for refactoring
One approach i am thinking is to place DB connection code into separate container and call it from other containers.
Similarly place third party REST integration logic in a single container and call it from other containers.
Questions:
- Can i have a microservice without a database attached to it?
- Can i have containerized code as mentioned above and still be qualified for microservice?
- Can a microservice be used barely for integration?
- Does using docker containers qualify for this scenario?