News for hackers. Stuff that matters.
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by nodesocket on Wednesday February 08, 2017 @02:27AM (#13596507)
Wish they'd do a full write-up. I'd be interested in how they run their node processes.

  - Using containers, VMs, bare metal?
  - Using a process manager like Forever[1], PM2[2] or just native systemd?
[1] https://github.com/foreverjs/forever

[2] https://github.com/Unitech/pm2

Re:All Twitter Mobile Traffic Is Now Powered by Node.js by romanovcode on Wednesday February 08, 2017 @04:50AM (#13597094)
They probably will a bit later. Highly doubt that they use forever or pm2 tho.
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by Alan01252 on Wednesday February 08, 2017 @04:59AM (#13597115)
Out of curiosity ( because we use pm2 here, and it works well ) why would you doubt them using those solutions?
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by nemothekid on Wednesday February 08, 2017 @10:56AM (#13599171)
Judging from their other infrastructure talks its far more likely they are shipping the application in a container to Apache Aurora, and having the process managed by Mesos.

I can't remember if all their services are now running on Mesos, but I'd bet their newer ones are.

Re:All Twitter Mobile Traffic Is Now Powered by Node.js by lossolo on Wednesday February 08, 2017 @05:29AM (#13597235)
Probably because it doesn't scale for their needs/fit rest of their system.
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by alex_duf on Wednesday February 08, 2017 @09:02AM (#13598212)
I'm still confused.

Did they add a layer between their backend and mobile to pre-render the page server side, or did they get rid of their whole scala/jvm stack to replace it with Node?

Re:All Twitter Mobile Traffic Is Now Powered by Node.js by nazka on Wednesday February 08, 2017 @11:51AM (#13599730)
My guess is they have a front with Nodejs for mobile.twitter.com and behind that you have all their scala/jvm microservices. Recoding all their microservices would be way too expensive. I don't think they use Nodejs for their RESTful API but I am curious to see more about that. Uber uses Nodejs for their GPS API so who knows...
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by alex_duf on Wednesday February 08, 2017 @04:32PM (#13602336)
ha, that would make sense!
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by fenollp on Wednesday February 08, 2017 @06:21AM (#13597426)
They seem to have done this only for Webpack (splitting JS libs + prefetching).

Why use Node at all? It's all static content...

Crazy that a top engineering post is about some company discovering "compile-time".

Next post will be about how they discovered this thing they call Testing?

Re:All Twitter Mobile Traffic Is Now Powered by Node.js by maherbeg on Wednesday February 08, 2017 @12:19PM (#13600028)
Most likely they include a bit of Server Side Rendering using the same templates they have in their compiled asset. Actually getting to share code here would be a pretty big win.
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by helthanatos on Wednesday February 08, 2017 @10:24AM (#13598901)
That's a bit harsh, don't you think? Maybe they'll discover bootstrap ;)
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by relics443 on Wednesday February 08, 2017 @08:13AM (#13597915)
I remember seeing Twitter switching from ruby/rails to the JVM for a lot of their backend a few years ago. I wonder why they're using node now (unless the mobile traffic was never moved to the JVM)?

https://www.infoq.com/articles/twitter-java-use

Re:All Twitter Mobile Traffic Is Now Powered by Node.js by midgetjones on Wednesday February 08, 2017 @04:40AM (#13597038)
I'm impressed, it's very snappy.
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by PunchTornado on Wednesday February 08, 2017 @06:24PM (#13603182)
anyone knows why it was done?
Re:All Twitter Mobile Traffic Is Now Powered by Node.js by murali129 on Wednesday February 08, 2017 @06:15AM (#13597403)
why did not go for go