I'm sure it's feasible for some projects, if you can swallow the pricing and lock-in issues. I'd probably pick another, newer platform service, though. For anything that isn't a hobby project you'll need some AWS training to set up your infrastructure correctly. AWS is extremely complex and has lots of quirks due to its age.
I think it's just a matter of choosing where to split your services and getting that wrong will sink you no matter what size.
Why take that risk then?
Not sure where you get the idea a product at google will survive
I'm referring to the scale of Google and their highly evolved infrastructure surrounding services. Something startups don't have resources to implement.
For example when my monolith sends an email, it palms that operation off to a micro service. Which really helps deal with issues like the fact an SMTP server can legitimately take five minutes to report the success or failure of a send operation
You don't need a microservice to send emails. Use a background queue worker with e.g. RabbitMQ for long-running operations.
I believe microservice architecture is going to be the reason behind hundreds of software startups failing. In the long run, this methodology is completely overkill and unmanageable for anything except when a company is operating at the scale of Netflix.
Startups that could have been built by a few developers working on a PHP monolith would now need to hire sysadmins, devops guys, Kubernetes experts and even more developers to do the same thing, but with worse reliability and latency. Features take ages to implement because you need to change multiple services and build interfaces between them when you could've just made a JOIN.
Just managing and keeping dependencies up to date (not to mention the Docker container) for all these services – that are probably written in a variety of languages – take ages and consume lots of man hours that could be spent on actual development. On top of that, the extreme costs that you now need for a fully-fledged AWS infrastructure is going to take any profit you might have gotten.
All this because microservices is the new and shiny thing. You're not Google. Stop it.
A lot of developers shit on WordPress without any good reason, just like a lot of developers shit on PHP in general without knowing anything about it. The truth is, WordPress is a tool and depending on how you use it, you'll get varying results. Developers are often more focused on their tools than how much value their work generates. You do valuable work. Focus on that.
It's worth noting that Lumen is specifically built for microservices, so the main differences are lack of frontend components like bootstrap and elixir as well as authentication infrastructure (login forms, sessions.)
It's also optimized for speed instead of developer usability, so it uses fastroute instead of Symphony routing, a single bootstrap file, lots of features are disabled per default that'd otherwise take time like facades, dotenv.
I would encourage you to look through the code. While it's laravel being laravel - so everything's spread in a bunch of different classes with small methods, something like PHPStorm makes it really easy to browse through. It's not as complicated as it seems, really.
My PHPStorm has been running smooth for as long as I can remember, but I'm not sure whether it's because of my dedicated graphics card (measly Radeon Pro 560 4 GB, but still). Using dual Samsung U28D590s. I've also switching to using greyscale antialiasing which made a small difference as far as I can remember.
I'm sure it's feasible for some projects, if you can swallow the pricing and lock-in issues. I'd probably pick another, newer platform service, though. For anything that isn't a hobby project you'll need some AWS training to set up your infrastructure correctly. AWS is extremely complex and has lots of quirks due to its age.
Not if it's part of the monolith, e.g. https://laravel.com/docs/9.x/queues
Why take that risk then?
I'm referring to the scale of Google and their highly evolved infrastructure surrounding services. Something startups don't have resources to implement.
You don't need a microservice to send emails. Use a background queue worker with e.g. RabbitMQ for long-running operations.
I believe microservice architecture is going to be the reason behind hundreds of software startups failing. In the long run, this methodology is completely overkill and unmanageable for anything except when a company is operating at the scale of Netflix.
Startups that could have been built by a few developers working on a PHP monolith would now need to hire sysadmins, devops guys, Kubernetes experts and even more developers to do the same thing, but with worse reliability and latency. Features take ages to implement because you need to change multiple services and build interfaces between them when you could've just made a
JOIN.Just managing and keeping dependencies up to date (not to mention the Docker container) for all these services – that are probably written in a variety of languages – take ages and consume lots of man hours that could be spent on actual development. On top of that, the extreme costs that you now need for a fully-fledged AWS infrastructure is going to take any profit you might have gotten.
All this because microservices is the new and shiny thing. You're not Google. Stop it.
I'd rather not, it's a fairly small company. I do development and a bit of system administration.
Can you link that "old php" thread?
Before taxes
Gross, before tax
Aarhus
$100k, Denmark, Senior Developer, 8 years experience
Agreed, but it’s a good start. Along with other tips from the thread, like asking for their CI setup, should help a lot avoiding legacy PHP jobs.
Sounds like you got a classic legacy PHP application job.
You need to look for PHP jobs that mention frameworks and other recent technologies.
A lot of developers shit on WordPress without any good reason, just like a lot of developers shit on PHP in general without knowing anything about it. The truth is, WordPress is a tool and depending on how you use it, you'll get varying results. Developers are often more focused on their tools than how much value their work generates. You do valuable work. Focus on that.
I mean just install a caching plugin. It’s more than enough
Write tests for it. Laravel provides methods for testing queued jobs and events.
I'd say that if you're at the point where you're deciding to write a microservice, you should also "know".
By the way, queues work out of the box. Not sure about Horizon, I've never used it.
It's worth noting that Lumen is specifically built for microservices, so the main differences are lack of frontend components like bootstrap and elixir as well as authentication infrastructure (login forms, sessions.)
It's also optimized for speed instead of developer usability, so it uses fastroute instead of Symphony routing, a single bootstrap file, lots of features are disabled per default that'd otherwise take time like facades, dotenv.
It's apparently a tiny bit slower since it's a function call.
On php7.3, for 10k calls, in seconds:
Edit: On subsequent runs, is_null wins by a similar margin. It might not matter at all!
Which they do
In my experience most companies have it on their list of requirements for candidates, but might not use it 100% of the time.
I would encourage you to look through the code. While it's laravel being laravel - so everything's spread in a bunch of different classes with small methods, something like PHPStorm makes it really easy to browse through. It's not as complicated as it seems, really.
I like this a lot more.
I see! I'm on a 2017 15" MacBook Pro with Catalina.
I also sometimes use a 12" Macbook with the 1.1ghz m3, and that's pretty bad! I'll definitely try your tip there.
My PHPStorm has been running smooth for as long as I can remember, but I'm not sure whether it's because of my dedicated graphics card (measly Radeon Pro 560 4 GB, but still). Using dual Samsung U28D590s. I've also switching to using greyscale antialiasing which made a small difference as far as I can remember.
I don't understand. Is that too expensive or too cheap for you?