DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,503 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Claudio Fior
Claudio Fior

Posted on

A suitable solution for php microservicies

I'm the maintainer of a old php web application birth in 2009 from the scratch (there is no framework, sic.) hosted in a Debian server.

It has been upgraded during the time, extended with new functionalities and now is a huge pile of code. But it works.

There is a plan of restyling the user interface, at least client side. This could be the chance to modularize the application that cover to many areas (relation with clients, contacts with providers, financial account, customer relationship management).

This could be the chance to convert an humongous application in a modular one.

One idea is: use microservicies!

The question is: what is the suitable solution in php?

At the moment I found these solutions:

1) ReactPHP, it is easy to install with Composer but requires a lot of dependencies (e.g. Symfony) to work;

2) Swoole PHP, it's a php module that must be installed with PECL. It's fast but not so easy to install in a Debian production server;

3) Amphp, it is easy to install with composer but has and does not require a lot of dependencies to work;

4) Web server that handles the requests on a different port and also catch PUT,DELETE requests.

Any suggestion that could be applied easily in a Debian machine?

Top comments (2)

Collapse
 
sergey_telpuk profile image
Sergey Telpuk • Edited on

Hi, look at github.com/spiral/roadrunner. if have any questions you welcome!

Collapse
 
caiofior profile image
Claudio Fior Author

Thanks for the suggestion!

πŸ‘‹ Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: