3 ms·
> My team is starting to rewrite some of the services we own in Golang because Rails is no longer a good fit for the problems and scale we use it for. What sor
by ericb 3y ago
> My team is starting to rewrite some of the services we own in Golang because Rails is no longer a good fit for the problems and scale we use it for.
What sort of web app do you have that is CPU bound?
- jupp0r 3y agoIt's an API gateway converting single digit MB-sized blobs of JSON into similarly sized blobs of JSON with a different structure.
- ericb 3y agoThe Rails app I scaled posted half a meg of JSON on every save-request every 10-15 seconds. In Rails, we parsed it, converted some parts into HTML nodes in Nokogiri, sanitized it, and saved it to both mysql and cassandra. It wasn't a problem other than that a better initial design (nothing to do with rails) could have made passing all that data not needed, which was better for mobile. We had about 600,000 customers.
- jupp0r 3y agoHow many requests per second are you talking about roughly? One major problem we face is that downstream services also have performance problems and have multi second response times. While waiting for the response, a whole rails worker is sitting idle, taking up hundreds of megabytes of memory for seconds.