23 April 2014

The Ruby Reflector

Topic

vs

  Source Favicon
Email

…master and each monitor thread simply waits as a consumer and then checks the timestamp on the slave vs the published timestamp. Synchronization is built in using this model and we saw much more accurate results. As opposed to sitting at 5-10ms all the time with spikes up to 50ms, we found 0ms in most cases (keep in mind that means 0ms from an application standpoint with network latency, time to process the query, etc) with spikes up to 40ms. Here is a sample graph (from Graph Explorer …

mysqlperformanceblog.com Read
  Source Favicon
By Todd Hoff of High Scalability 12 days ago.
Email

…the Content Addressable Web? Your kids won't. The mobile web vs apps is another front on the battle between open and closed systems .

In Public Cloud Instance Pricing Wars - Detailed Context and Analysis Adrian Cockcroft takes a deep stab at making sense of the recent price cuts by Google, Amazon, and Microsoft. AWS users should migrate to the new m3, r3, c3 instances; AWS and Google instance prices are essentially the same for similar specs; Microsoft is …

highscalability.com Read
  Source Favicon
Email

…first. This is a simple example, but by following this process, we can conquer any sized programming task. Writing the tests first will also help us write testable code and help us keep our methods small.

What's next?

If you found this useful, you might also enjoy:

End-to-End Testing with RSpec Integration Tests and Capybara

Spy vs Spy

Test Driven Development: By Example

robots.thoughtbot.com Read
  Source Favicon
Email

I apply the same ‘client vs personal projects' principle to third-party code dependencies as well. I've taken to using the # GlassboardNext codebase as my playground for experimenting with new third-party projects like Cocoapods, ReactiveCocoa, and Mantle even though I can't imagine a scenario where I'd currently use them a client project (well, maybe Mantle. It's pretty isolated.)

It's possible these choices will come to bite me in the ass eventually, …

carpeaqua.com Read
  Source Favicon
Email

…of them are enabled by default) I could just chose to get the sampled data and play with accuracy vs overhead instead of missing the data all together.

Summary: There is a great amount of data in Performance Schema in MySQL 5.6 and Percona Server 5.6 though there are a number of reasons that you also might not want to discard the old and proven tools based on the slow query log just yet.

P.S., If you're interested in seeing Query Performance Analyses in action please join Vadim

mysqlperformanceblog.com Read
  Source Favicon
By Serdar Sutay of Chef Blog 3 months ago.
Email

ID validation during "data bag item from file" and "data bag edit" vs the "data bag create"

[ CHEF-4762 ] - http_request with action :head does not behave correctly in 11.8.0

[ CHEF-4782 ] - chef service provider action "enable" not idempotent on ubuntu/debian

[ CHEF-4806 ] - debian service not idempotent and ignoring S runlevel

[ CHEF-4822 ] - Remove unused instance variable startup_type from service resource …

opscode.com Read
  Source Favicon
By Joshua Timberman of Chef Blog 3 months ago.
Email

…the client and server package installation are the package name, splunkforwarder vs splunk . The earlier URL attribute example established a forwarder and server attribute. Using a definition, named splunk_installer , allows us to simplify the package installation used by the client and server recipes to look like this: splunk_installer 'splunkforwarder' do url node['splunk']['forwarder']['url'] end splunk_installer 'splunk' do url node['splunk']['server']['url'] …

opscode.com Read
  Source Favicon
By Mike Perham of 3 months ago.
Email

…twiddle a lot of knobs or understand a large domain model first? How much code is tedious boilerplate vs truly important application code?

One mistake I often see younger developers make is putting a lot of weight on runtime performance when evaluating a technology, often to the exclusion of almost all other variables. " Library X can frob 1800 times per second whereas library Y only frobs 1100 times per second so I guess I'll use X" This is equivalent to selecting a car based …

mikeperham.com Read
  Source Favicon
Email

The code avoids possible state vs identity bugs by avoiding mutation.

Drawbacks

The new code is larger, both in terms of lines of code and overall complexity by any measure.

It uses a large number of design patterns that will be confusing to those that are unfamiliar with them, or to those that fail to recognize them quickly.

It introduces new words into the application vocabulary. Although naming things can reveal their intent, too many names can cause vocabulary overload and …

robots.thoughtbot.com Read
  Source Favicon
By Mike Perham of 4 months ago.
Email

…gains were modest: a simple Rails app app saw 1.3x performance improvement with 3 threads vs 1 thread. But the researchers found a number of hotspots which caused a lot of transaction aborts, including Ruby's GC, the regexp library and various C global variables. Fixing these hotspots would be just one of many changes necessary to remove the GIL and make Ruby truly thread-safe but would also improve HTM scalability greatly.

That's a very brief overview of the paper but I …

mikeperham.com Read