I was reading this article about how microservices can be extracted out from existing phoenix app. Author refactored one of the phoenix app controller and moved one of its method to a Genserver ,after that he moved that Genserver to a separate application and added it a a dependency in the main project.
But I'm little confused here because GenServer allows you to have only two server callbacks (which are handle call and handle cast). But if I want a functionality to move out as a microservice we would end up creating as many Genserver as the endpoints involved in that service, because a single genserver would allow a one/two method call. Is genserver an ideal approach for extracting services ?