Deciding the number of endpoints in a microservice