D
D
Dos2020-05-24 19:45:38
PHP
Dos, 2020-05-24 19:45:38

Which framework to choose for Slim or Swoft microservices?

Hello! I want to build a microservice architecture in php. Microservice tasks will require many auxiliary service components like: rpc-server , rpc-client , Auth wrapper, logging , tracing , monitoring and so on.

Writing all this from scratch will take a lot of time. Well, what to do, there is no other choice. I decided to take the Slim microframework as a basis . It is quite suitable for HTTP REST and creating microservices, fast, simple, flexible.

However, before you start "cutting" your bike, it's worth seeing if someone has already made this bike. So I came across a framework for microservices Swoft. Here I see that the framework is completely tailored for the development of microservices. Most of the components have already been implemented, there is monitoring and so on.

What can I make a superficial comparison:

Slim

  • Popular
  • Simple and predictable
  • Reliable
  • Long time on the market
  • There is a good Community

Well, and so on. In general, a lot of people know about it, they use it in a lot of places.

Swoft
  • Relatively recent start: 2018 (-)
  • Weak community (-)
  • But a lot of implemented ready-made components

In general, I don’t know anything about Swoft, except from the documentation. Never heard of him. There are few references to him. I only found one on the toaster. It is not known what will happen to the framework in a couple of years. In general, there are many doubts, but a large number of developments are luring.

I ask for your help! Share your opinion, experience. Maybe there are other good options with ready-made functionality.

Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2020-05-24
@pro-dev

Symfony is also a microframework.

E
Ernest Faizullin, 2020-05-24
@erniesto77

as usual, the answer to such questions is that what you and your team know best, then use
symfony and it is desirable, symfony has a microservice skeleton. Better than it, because it respects and supports world code standards

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question