After reading and using different concepts(right or wrong) questions related to modularity have appeared.
I want to implement the microservice architecture in my projects the right way.
As from what I have understood in order to follow this architecture my project needs to be modular.As an example breaking down a social network into different services as chat API service, web API service, mobile service API etc...
What protocol should be used to communicate between the microservices?Is communicating through a REST protocol okay?For example, communicating via JSON?Also, how can I secure my communication between API 1 and API 2?
Now talking about OOP and Functional programming.
I've red that OOP is used when you have a fixed set of operations and when your code evolved you add new things.On the other hand, Functional programming is used when you have a fixed set of things and as your code evolved you add more operations.Can somebody give me an explanation for this?
Now to summarise these questions and to ask it as one question.What is the best approach to use different programming styles at different parts of a project when following a microservices architecture?