3
Wombat
5y

Hi,

Can you provide good resource for microservices with yii2?

Are those related? Cause a client asked about this combination and as far as I could find it seems that they aren't.

Comments
  • 4
    > Microservices in PHP
  • 4
    Php framework + microservices?
    Wtf?
    As a PHP dev, you crazy!
    Microservices are meant to be just that.. micro.

    @12bitfloat yes, if it's kept lightweight and native you can get away with it.
    Adding a giant framework into the mix is not keeping it anywhere near "micro"
  • 4
    @C0D4 Overhead multiplies. I don't wanna be the guy paying the AWS bill when literally 50% of cpu time is spend parsing and initializing
  • 4
    @12bitfloat costs less then the windows servers 😉

    But yes I agree, the smaller the better.
    Use lambdas instead if you can.
  • 2
    @12bitfloat @C0D4 thanks. I knew this would be ahit.
  • 2
    @Wombat at best, if you just wanted to add APi support to a current instance, Yii could be leveraged to do that (see link)

    But otherwise, as a stand-alone service I wouldn't bother.
    I would be question the use of php at all in a stand-alone device but then I would probably build it in native php anyway 😅

    https://yiiframework.com/doc/guide/...
  • 1
    If you want to do microservices with php, I'd suggest to just go with symfony 4 in mycroframework mode...
  • 1
    @Wack @C0D4 I never had the intention to actually do that. I was asked two questions about that and was like 'huh?'.

    But I agree, a whole php framework is not my first choice for building microservices.
Add Comment