49 points · by edmorley · 4y ago · 39 comments
There isn't a month that goes by without our devs being impacted.
GitHub - please just work on fixing this. Your product is great but your availability is your biggest problem. It's beyond a joke at this point.
This is why it makes no sense going 'all in' on GitHub services.
Have you ever tried using GitLab?
+1 -- same experience here for a medium size (60) eng team.
Interesting - we have this kind of thing quite often. Basically, an event is stuck in the queue due to a logic error or a prior race condition, and it's endlessly retried blocking the rest of the events from being processed. We can't just automatically remove such an event from the queue because events must be processed in order or client data can get corrupted. It requires manual intervention (we have alerts in place), and every time it's a new event so we have to be creative and think quickly - how to unblock the queue without corrupting client data by skipping events. After an event is unstuck, there's a huge queue of unprocessed events which can take up to a few hours to be emptied in worst cases. Fortunately we have some sharding in place so there can be several independent workers processing the same global queue - with workers' shard affinity we can process shard data in order AND in parallel, so SRE can temporarily increase the number of workers when the queue gets too large, to speed it up. I still don't know how to solve this kind of problem once and for all (i.e. to have zero manual intervention). Is it even solvable?
I don't know much about your application but the fact that you can mitigate the problem by scaling the number of workers suggests that the order requirements might actually be fairly weak. As a worst case outcome you may be able to push all events interdependent to the one with an error to a DLQ using a temporary blacklisting mechanism, but by that stage I think I would just prefer better testing.
- improper database validation
- older component not tested against configuration change
- uncontrolled automation DOS
- incompletely distributed secrets
How far must the sunk cost fallacy go before something is done?
Meaning that at one point extra programmer difficulty is worth it if your everyday web stack can't keep up.
Though I'd personally do it in Elixir but again, speed. GitHub is huge and should rise up to the challenge.
I've seen good and productive Rails teams but they had to deliberately stop themselves from certain practices, otherwise they ran into problems. Long topic though, and people get very emotional and preachy defending Rails so it's a fruitless discussion 99.9% of the time.
In the end use what you feel works best for you and your team. Objective differences in programmer productivity, machine speed, iteration speed and other metrics does exist though and it's very tiring to see people constantly pretend otherwise.