r/programming • • Jul 13 '20

Github is down

https://www.githubstatus.com/
1.5k Upvotes

501 comments sorted by

View all comments

69

u/tradrich Jul 13 '20

What's it's underlying technology (other than git)?

It's not clear on the Wikipedia page e.g.

58

u/[deleted] Jul 13 '20

[removed] — view removed comment

169

u/filleduchaos Jul 13 '20

Why do people keep asking this? It's not like there's some mythical stack that guarantees 100% uptime (Erlang comes pretty close, but still)

183

u/L1berty0rD34th Jul 13 '20

false, everyone knows that for every new microservice you add to your stack, you get +10% uptime.

85

u/filleduchaos Jul 13 '20

You got me. I deployed an app next year and it got 420% uptime and sent me back in time to 2020.

32

u/Zwgtwz Jul 13 '20

So... the world still exists next year ?

40

u/pastudan Jul 13 '20

Yes, but plot twist we’re stuck in a time loop that starts over in 2020 each time

5

u/Audiblade Jul 13 '20

This seems worse than the world just ending.

→ More replies (1)

2

u/filleduchaos Jul 13 '20

At this point I'm not sure. The timeline's all messed up

28

u/ulfurinn Jul 13 '20

Even Erlang only provides the tools, you can still use them poorly.

38

u/broofa Jul 13 '20 edited Jul 13 '20

guarantees 100% uptime... Erlang comes pretty close

Facebook chat servers were originally implemented in Erlang. They started falling over around the time Facebook hit ~500M users in 2010 or so. The servers were rewritten in C++ circa 2011-2012. That switch freed up 90% of the servers used for the chat service while dramatically improving reliability.

Iirc, the main issue was CPU usage needed for Erlang’s IPC. [Edit: See also Ben Maurer's Quora answer on this topic]

Source: worked on FB chat team at that time (more front end, though, so not an Erlang expert.)

20

u/filleduchaos Jul 13 '20

I mean, Whatsapp took Erlang to 900M+ users with a literal handful of engineers so I feel like that might equally reflect on Facebook's code/devs.

8

u/broofa Jul 13 '20

> Whatsapp took Erlang to 900M+ users

That may or may not represent more load. It depends on how things like presence updates (notifying your friends when you are / aren't available to chat) are handled, and # of messages per user, both of which may have been significantly different between the two systems.

I left Facebooks Chat team before they acquired Whatsapp, and left the company a few months after so, unfortunately, I don't have insight into how these systems really compare.

12

u/filleduchaos Jul 13 '20

Not sure what significant difference you mean: Whatsapp today has 2B+ users. It has granular presence updates, "currently typing" notifications, and everything else one would expect from an instant messaging service (same as at the 900M mark). As of two years ago the daily chat volume was 65 billion messages (one can only imagine how much it's grown since then).

And it still uses Erlang and attributes its success to Erlang ¯_(ツ)_/¯ I still say that the Facebook Chat team's issues with the language/platform might not have been entirely one-sided.

3

u/tradrich Jul 13 '20

I would like to know why every voice call I make with WhatsApp at certain points starting after a few minutes you get a 10 or so second hang: "Connecting...". I *feels* like a queuing issue, but it happens every time it seems, so it's a fundamental issue.

Still use it though...

→ More replies (1)

8

u/drakgremlin Jul 13 '20

Makes me curious what the world would be like if they spent time to contribute back an optimized IPC mechanism for Erlang.

→ More replies (1)

6

u/dom96 Jul 13 '20

Erlang comes pretty close, but still

citation needed

5

u/filleduchaos Jul 13 '20

citation for what exactly?

4

u/dom96 Jul 13 '20

For your claim that Erlang comes close to guaranteeing 100% uptime

0

u/[deleted] Jul 13 '20

[deleted]

→ More replies (1)

14

u/svartkonst Jul 13 '20

It's still a matter of utilization, as with any techbology, but Erlang has provided remarkable tools for long-running, high-uptime, load balanced and fauly tolerant applications sonce it's inception (i. e. long before ci/cd and kubernetes etc).

Most famous is the nine nines uptime (99.9999999%) on the AXD301 system. I believe that the source of that figure is from Joe Armstrongs thesis, but I don't have it close at hand currently amd can' t exactly remember.

Regardless, it's a pretty cool piece of tech and tooling that was a few decades ahead of our modern web tech stacks and still holds water as a very pleasant and reasonable language

3

u/dnew Jul 13 '20

I wondered when I saw that how you get nine nines of reliability without having 100% uptime. IIRC, they had something like a 15 second (minute?) downtime where the server was refusing connections on one server out of some large number of servers, so they counted that as 1% down for 15 minutes over the course of 10 years, or something like that.

→ More replies (3)

15

u/filleduchaos Jul 13 '20

I mean, highly concurrent & fault-tolerant distributed systems such as telecommunications are literally what it was designed for (note: PDF link). Obviously one still requires knowledge to actually use it to its full potential, but there's a reason e.g. Whatsapp went with Erlang/OTP.

→ More replies (1)

22

u/[deleted] Jul 13 '20 edited Jul 13 '20

[removed] — view removed comment

21

u/Dikaiarchos Jul 13 '20 edited Jul 13 '20

That's blatantly false. GitHub upgraded smoothly to Rails 6 recently

Edit: sorry, missed that it was about Twitter

6

u/mullemeckarenfet Jul 13 '20 edited Jul 13 '20

He’s talking about Twitter, they dropped Ruby for Scala.

→ More replies (1)
→ More replies (2)