Introduction to MySQL's Innodb Memcached Interface

Introduction to MySQL's Innodb Memcached Interface

Note: This is part three in our Extending MySQL with PHP's MySQLnd Series

With MySQL 5.6 a memcache-compatible innodb-backed key-value store was added to MySQL.

The InnoDB Memcache Daemon gives you the permanence of innodb for key-value data, that can be accessed via the much faster, optimized memcached protocol — using this will skip the query parser, optimizer and other parts of engine that are unnecessary.

With mysqlnd_memcache, you can transparently route queries to this memcache-compatible interface.

Read More

Graph Kit for Ruby: Deployment with Graph Story and Engine Yard

Graph Kit for Ruby: Deployment with Graph Story and Engine Yard

Welcome to the third and final installment of the Graph Kit for Ruby post series. Part 1 kicked the series off with a brief look at the idea of a graph database and some description of the Spree online store I planned to enhance with a graph. Part 2 went in depth with the addition of a graph-powered product recommendation system to a Spree online store. In this final entry we’ll learn how to tweak our Spree + Neo4j store to deploy it to a production server on Engine Yard Cloud.

Provisioning

Pushing this Spree store to Engine Yard worked in three major phases: provisioning the server, configuring the server, and pushing the code. That runs for ten minutes or so, and then you have a new server running. Next up – SSH into the server to do the last-mile config before your first deployment.

Read More
Learn about Engine Yard
Try Engine Yard for your Ruby or PHP Apps

Ruby Isn't Dead

Ruby Isn't Dead

Some might say 2014 has been a year of programming related death. TDD is dead. Agile is dead. The Framework is dead. If this keeps up, all of programming should be dead by about December 31st.

Earlier this year I was lucky enough to attend a small conference in Southern france known as Ruby Lugdunum. In the late afternoon of the final day we retreated to a cafe and there was a panel discussion on the future of Ruby hosted by Joshua Ballanco. The beginning thrust of the panel discussion, which featured such Ruby luminaries as Terence Lee, Chris Kelly, and Sam Phippen, was the idea of Ruby fading away or dying out.

The idea itself disturbed me. Maybe my head was in the sand and I missed something, but I love Ruby. It’s easily the favorite of all the languages I’ve programmed with. It couldn’t be dying... it just couldn’t!

Read More

Graph Kit for Ruby: Bootstrapping a Spree Store and Integrating with Neo4j

Graph Kit for Ruby: Bootstrapping a Spree Store and Integrating with Neo4j

Welcome to the second installment of the Graph Kit for Ruby series. In the first post I described the plan for the project — to showcase the ease of use and business value of graph databases in the context of a Ruby project. Today we’re digging into the implementation of a Neo4j-backed product recommendation engine. This recommendation engine will sit atop an online store built with the Rails-based e-commerce project Spree.

Brief note on prerequisites and recommended experience level

This post assumes that the reader has a basic understanding of the Ruby ecosystem. You’ll need a newer version of Ruby (2.0+ preferred) and the `bundler` utility. You might also need to be able to install some packages on your system like the PostgreSQL and Neo4j database engines. I used Ubuntu to prototype this but you should be able to get by fine with any recent version of Linux or OSX. The finished project is published on Graph Story’s GitHub account as the Graph Kit for Ruby, so feel free to dig in for specific implementation details.

If at any point you get stuck feel free to reach out to the Graph Story team for help. Here we go!

Starting a new Spree Project

You’ll want to follow the recommendations in the official Spree Getting Started Guide to get your workspace set up. Note that you’ll start with the usual rails new installer before getting into Spree-specific setup. Here are the basic shell commands to get your Rails project started with Spree loaded into its Gemfile:

Read More

Regarding the Recent Sony Pictures Entertainment Hack

Regarding the Recent Sony Pictures Entertainment Hack

Today the Federal Bureau of Investigation released a statement confirming that North Korea was behind the recent hack of Sony Pictures Entertainment. Many have stated that this might be a false flag tactic while FBI investigates the true culprits. In any case, this recent news shows the damaging nature of a company wide hack.

The original compromise became public last month on 11/24. Information from Sony Pictures Entertainment including personal employee details--such as health information, Social Security Numbers, and salaries, along with unreleased movies, were made available online by the perpetrators. Over the next few weeks more details were released including high level emails and other damaging details that are now springing up as part of various lawsuits.

Whoever the culprit was, they likely had advanced knowledge of Sony’s computer system. There is evidence of fifty hard coded server names in the malware used. This is leading some to believe the compromise began as far back as February. According to Verizon Data Breach Investigation Report, 66% of breaches take months or years before they are discovered.

Along with the breaches of Target, Staples, Michaels, and The Home Depot, it is apparent that large scale breaches are becoming more frequent.

Engine Yard is committed to security and we continually do everything we can to ensure all environments are secure. We have increased security measures regarding system access and physical security for our staff around the globe. Additionally, we have implemented many measures that limit our Support and Engineering access to our customer’s data.

If you, at any time, have questions in regard to the security procedures or controls in place here at Engine Yard, please do not hesitate to contact support for more information either through the ticketing system or through the #engineyard channel on irc.freenode.net.

CHECK OUT OUR CURATED COLLECTIONS

Look through our specially curated posts to get focused, in-depth information on a single topic.