As anyone who has ever developed an interactive web app will know, Firebug ( Firefox) and Inspector ( Webkit) are your best friends. In fact, in many cases these tools are the "IDEs of choice" for manipulating the DOM, debugging JavaScript, and even working with CSS. However, have you ever wondered how many CPU cycles that script really took, or how much time the browser spent in reflow, as compared to just parsing the data? That's where Google's …
…heard Node is hot (although it is hot). In fact, Ruby and performance reminds me of Apple and the iPhone 4 antenna.
References
Performance Testing Rails Applications by Pratik Naik
Profiling Ruby With Google's Perftools by Ilya Grigorik
Thinking Sphinx by Pat Allan
Migrating your web application from a single node to a distributed setup is always a deceivingly large architectural change. You may need to do it due to a resource constraint of a single machine, for better availability, to decouple components, or for a variety of other reasons. Under this new architecture, each node is on its own, and a network link is present to piece it all back together. So far so good, in fact, ideally we would also like for our new architecture to provide a few key properties…
My research turned up a lot of work by Ilya Grigorik and Mike Perham that pushed toward this goal. Rack/Fiber-Pool by Mike is a piece of Rack middleware that runs each request in it's own Fiber, allowing the possibility of easy cooperative scheduling in Rack applications. While EM-Synchrony provides a set of Fiber-aware EventMachine clients for common things like HTTP requests, Memcached, MySQL and Mongo.
JavaScript client-side …
…separate Web request by the rack-fiber_pool middleware component. Ilya Grigorik's EM-Synchrony can then be used to make a collection of common EventMachine clients fiber-aware (for using Memcached, MongoDB, Beanstalk, and more). All of this works with any Rack app, not just in Rails.
This week, Aaron Gough has written an article called Improving application throughput 9x with asynchronous responses in Rails 3 that covers the concepts at a …
…featuring Ruby luminaries like Chris Wanstrath, Gregg Pollack, and Ilya Grigorik.
Stay with a Local , a website to connect RailsConf attendees with Baltimore Rubyists. 9 Bmore on Rails members have opened up a total of 12 rooms in their homes to host attendees traveling to Baltimore.
BohConf , a free unconf running in parallel with RailsConf. It will be held in the convention center for the duration of RailsConf. This hacking-centric event …
The tools for creating a similar systems yourself are widely available, and it's pretty easy. Ilya Grigorik recently put together a walkthrough of creating a simple Web Sockets server in Ruby using EventMachine. There are plenty of other open source solutions for message pushing generally like Juggernaut and Cramp .
In many cases running your own standalone socket server gives you a lot of flexibility for more bespoke deployments. However, maintaining these …
Ilya Grigorik recently wrote a nice summary about message handling with AMQP . Rany Keddo, the author of the Workling plugin, wrote another nice post about RabbitMQ with amqp . What is the most simple and basic example of using an AMQP message queue from Ruby? And what is an AMQP message queue anyway?
Message queues are useful to store a large number of items which can not be processed immediately and to achieve a loose coupling between application parts in general. …
…Ryan Singer + Jason
A year ago ( Focused on programming):
DHH (See " A little less hokus pokus ")
Yehuda (See "Writing code that doesn't suck")
Ilya Grigorik (w/r/t doing interesting stuff w/ ruby)
Norvig
pg
Send me an e-mail at f.mischa@gmail.com if you know of anyone else you think I might be interested in!
After reading the excelent blog post about WebSockets and Ruby by Ilya Grigorik I got inspired by this experiment which is a simple example of a twitter-to-browser usage of websockets.
Since the excelent em-websocket was available on github, I decided to write my own "from twitter to the browser" real time updates, with no polling.
You can check the final result on my github repo .
General overview
Twitter Stream API โ Filter โ RabbitMQ โ…