software engineer, teacher and speaker. I mostly talk about programming and powerlifting. Free Lessons here 👉🏻 https://t.co/f7R1qQAEkE
Oct 31, 2022 • 8 tweets • 4 min read
Let’s see how the service container works!
The container’s job is to give you objects. When you request an object, it might do that in 2 ways (in Laravel, specifically): either by checking if what you requested is bound already, or by instantiating it.
Okay, cool, but what is a binding?
Imagine the container as a central place that has all the dependencies of your app in an array.
The key is a string: it could be any you want, or it can be a class FQN (which is a string).
The value could be a class FQN, a closure, or null.
@JackEllis already wrote a very interesting blog on how Fathom Analytics scaled Laravel, but my story is about different.
@JackEllis This is how we scaled to over a hundred million jobs and peaks of 30,000 requests/minute a timespan of only twelve hours, using nothing but Laravel, MySQL and Redis.
Jul 24, 2022 • 40 tweets • 22 min read
Escalando uma aplicação para >100M jobs diários e dezenas de milhares de requisições por minuto
Nessa thread eu vou mostrar como escalamos uma aplicação usando um stack que muita gente rolaria os olhos: Laravel, Redis e MySQL. Só.
Segue o fio 👇🏻
Cc @sseraphini@sseraphini Em 2019 eu entrei num projeto que era um gerenciador de campanhas SMS.
Basicamente, grandes marcas pagavam um valor mensal + um markup por mensagem enviada.
Eles faziam upload das suas próprias listas e depois segmentavam usando as campanhas.
Jan 22, 2021 • 12 tweets • 11 min read
I compiled a list of good videos/posts for Laravel and PHP developers. It's not completed but I'll add new tweets later.
If you're working with Laravel and PHP, check this out — you might know some stuff already but I'm sure there are new things to learn here. Thread 👉
From @mateusjatenee (me)
What is dependency Injection and the Container:
Repository Pattern:
How to start writing tests:
Data transfer objects: