News for hackers. Stuff that matters.
Re:Web Service Efficiency at Instagram with Python by spullara on Wednesday June 22, 2016 @04:31AM (#11952315)
They should really show what they are doing with their CPU. How many requests per second and their characteristics? Generally Python (Ruby, etc) is terribly inefficient relative to the next tier of languages like Java and Go. At Twitter we were able to reduce number of servers by 10x and decrease latency by 10x by moving the web application from Ruby to Scala/Java with no architectural changes, essentially byte for byte (and bug for bug) compatible. My guess is they have done this math and would rather pay for more servers and take the latency hit rather than rewrite it.
Re:Web Service Efficiency at Instagram with Python by deno on Wednesday June 22, 2016 @04:47AM (#11952353)
Did you at the time compare it with a JIT implementation like PyPy (for Python, not sure what would be the Ruby equivalent)?
Re:Web Service Efficiency at Instagram with Python by pritambaral on Thursday June 23, 2016 @04:23AM (#11959562)
A JITing implementation of Ruby would by JRuby. Depending on JRuby's state at that time, Twitter could have used JRuby and gradually rewritten parts of it in Scala. Perhaps.