Mohammed Sardar. wrote:Hi Alex,
How does functional design impact the microservices architecture of an application when the functional aspect of any service changes? Can microservices adopt complete functional programming?
Glad to hear from you.
Thanks,
Hi Mohammed Sardar,
Thank you for your question.
FP is compatible with microservices. You can have your microservice apps completely written in an FP language, and I would do so with Haskell rather than in any different language. There are certain advantages of this choice, but they are not about the high-level solution because microservices are microservices no matter what paradigm is used. But you might be happy to enjoy nice FP features when writing your app: concurrency, bugs elimination, a reduced complexity. Especially if your microservice is "stateless". (I take this
word into quotes because "stateless" doesn't necessarily mean the absence of any state. People may say "stateless" even when there is a DB to interact with.)