Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681386yPhp 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" -
@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
-
C0D4681386y@12bitfloat costs less then the windows servers 😉
But yes I agree, the smaller the better.
Use lambdas instead if you can. -
C0D4681386y@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/... -
Wack63116yIf you want to do microservices with php, I'd suggest to just go with symfony 4 in mycroframework mode...
-
Wombat105826y@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.
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.
question