From Monolith to Microservice – An OCR Service Case Study
Why Do This?
You’re developing a new optical character recognition (OCR) feature — extracting text from photos. This functionality is an excellent candidate to be implemented as a supporting microservice for your main system. Thanks to this, you can scale it independently, both horizontally (by running additional instances) and vertically (by increasing resources on a single instance) according to current needs and load.
Instead of building the entire microservice infrastructure from scratch right away, you begin by creating it as another module inside your current monolith. Only then do you gradually extract it into a standalone microservice. This significantly simplifies and accelerates the whole process.
In this article, I walk you through the individual steps of this approach.
To be continued...