{"id":2007,"date":"2013-02-11T07:58:15","date_gmt":"2013-02-11T07:58:15","guid":{"rendered":"http:\/\/www.odbms.org\/blog\/?p=2007"},"modified":"2013-02-11T07:58:15","modified_gmt":"2013-02-11T07:58:15","slug":"mysql-state-of-the-union-interview-with-tomas-ulin","status":"publish","type":"post","link":"https:\/\/www.odbms.org\/blog\/2013\/02\/mysql-state-of-the-union-interview-with-tomas-ulin\/","title":{"rendered":"MySQL-State of the Union. Interview with Tomas Ulin."},"content":{"rendered":"<p><strong><em>&#8220;With MySQL 5.6, developers can now commingle the &#8220;best of both worlds&#8221; with fast key-value look up operations and complex SQL queries to meet user and application specific requirements&#8221; <\/em>&#8211;Tomas Ulin.<\/strong><\/p>\n<p>On February 5, 2013, Oracle announced the <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.oracle.com\/us\/corporate\/press\/1904335');\"  href=\"http:\/\/www.oracle.com\/us\/corporate\/press\/1904335\">general availability of MySQL 5.6.<\/a><br \/>\nI have interviewed <strong>Tomas Ulin<\/strong>, Vice President for the MySQL Engineering team at <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.oracle.com');\"  href=\"http:\/\/www.oracle.com\">Oracle<\/a>.\u00a0I asked him several questions on the state of the union for MySQL.<\/p>\n<p>RVZ<\/p>\n<p><strong>Q1. You support several different versions of the MySQL database. Why? How do they differ with each other? <\/strong><\/p>\n<p><strong>Tomas Ulin<\/strong>: Oracle provides technical support for several versions of the MySQL database to allow our users to maximize their investments in MySQL. Additional details about Oracle&#8217;s Lifetime Support policy can be found <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.mysql.com\/support\/');\"  href=\"http:\/\/www.mysql.com\/support\/\">here. <\/a><\/p>\n<p>Each new version of MySQL has added new functionality and improved the user experience. Oracle just made available <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/dev.mysql.com\/tech-resources\/articles\/whats-new-in-mysql-5.6.html');\"  href=\"http:\/\/dev.mysql.com\/tech-resources\/articles\/whats-new-in-mysql-5.6.html\">MySQL 5.6<\/a>, delivering enhanced linear scalability, simplified query development, better transactional throughput and application availability, flexible NoSQL access, improved replication and enhanced instrumentation.<\/p>\n<p><strong>Q2. Could you please explain in some more details how MySQL can offer a NoSQL access?<\/strong><\/p>\n<p><strong> <\/strong><strong>Tomas Ulin: <\/strong>MySQL 5.6 provides simple, key-value interaction with InnoDB data via the familiar Memcached API.  Implemented via a new Memcached daemon plug-in to mysqld, the new Memcached protocol is mapped directly to the native InnoDB API and enables developers to use existing Memcached clients to bypass the expense of query parsing and go directly to InnoDB data for lookups and transactional compliant updates. With MySQL 5.6, developers can now commingle the &#8220;best of both worlds&#8221; with fast key-value look up operations and complex SQL queries to meet user and application specific requirements.\u00a0More information is available <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/blogs.oracle.com\/MySQL\/entry\/mysql_5_6_is_a');\"  href=\"https:\/\/blogs.oracle.com\/MySQL\/entry\/mysql_5_6_is_a\">here.<\/a><\/p>\n<p>MySQL Cluster presents multiple interfaces to the database, also providing the option to bypass the SQL layer entirely for native, blazing fast access to the tables. Each of the SQL and NoSQL APIs can be used simultaneously, across the same data set. NoSQL APIs for MySQL Cluster include memcached as well as the native C++ NDB API, Java (ClusterJ and ClusterJPA) and HTTP\/REST. Additionally, during our MySQL Connect Conference last fall, we announced a new Node.js NoSQL API to MySQL Cluster as an early access feature.\u00a0More information is available <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.mysql.com\/products\/cluster\/nosql.html');\"  href=\"http:\/\/www.mysql.com\/products\/cluster\/nosql.html\">here.<\/a><\/p>\n<p><strong>Q3. No single data store is best for all uses. What are the applications that are best suited for MySQL, and which ones are not?<\/strong><\/p>\n<p><strong>Tomas Ulin: <\/strong> MySQL is the leading open source database for web, mobile and social applications, delivered either on-premise or in the cloud.  MySQL is increasingly used for Software-as-a-Service applications as well.<\/p>\n<p>It is also a popular choice as an embedded database with over 3,000 ISVs and OEMs using it.<\/p>\n<p>MySQL is also widely deployed for custom IT and departmental enterprise applications, where it is often complementary to Oracle Database deployments. It also represents a compelling alternative to Microsoft SQL Server with the ability to reduce database TCO by up to 90 percent.<\/p>\n<p>From a developer\u2019s perspective, there is a need to address growing data volumes, and very high data ingestion and query speeds, while also allowing for flexibility in what data is captured. For this reason, the MySQL team works to deliver the best of the SQL and Non-SQL worlds to our users, including native, NoSQL access to MySQL storage engines, with benchmarks showing 9x higher INSERT rates than using SQL, while also supporting online DDL.<\/p>\n<p>At the same time, we do not sacrifice data integrity by trading away ACID compliance, and we do not trade away the ability to run complex SQL-based queries across the same data sets. This approach enables developers of new services to get the best out of MySQL database technologies.<\/p>\n<p><strong>Q4. Playful Play, a Mexico-based company, is using MySQL Cluster Carrier Grade Edition (CGE) to support three million subscribers on Facebook in Latin America. What are the technical challenges they are facing for such project? How do they solve them? <\/strong><\/p>\n<p><strong>Tomas Ulin: <\/strong>As a start-up business, fast time to market at the lowest possible cost was their leading priority. As a result, they developed the first release of the game on the LAMP stack.<\/p>\n<p>To meet both the scalability and availability requirements of the game, Playful Play initially deployed MySQL in a replicated, multi-master configuration.<\/p>\n<p>As Playful Play\u2019s game, La Vecidad de El Chavo, spread virally across Facebook, subscriptions rapidly exceeded one million users, leading Playful Play to consider how to best architect their gaming platforms for long-term growth.<\/p>\n<p>The database is core to the game, responsible for managing:<br \/>\n\u2022\tUser profiles and avatars<br \/>\n\u2022\tGaming session data;<br \/>\n\u2022\tIn-app (application) purchases;<br \/>\n\u2022\tAdvertising and digital marketing event data.<\/p>\n<p>In addition to growing user volumes, the El Chavo game also added new features that changed the profile of the database. Operations became more write-intensive, with INSERTs and UPDATEs accounting for up to 70 percent of the database load.<\/p>\n<p>The game\u2019s popularity also attracted advertisers, who demanded strict SLAs for both performance (predictable throughput with low latency) as well as uptime.<\/p>\n<p>After their evaluation, PlayFul Play decided MySQL Cluster was best suited to meet their needs for scale and HA.<\/p>\n<p>After their initial deployment, they engaged MySQL consulting services from Oracle to help optimize query performance for their environment, and started to use MySQL Cluster Manager to manage their installation, including automating the scaling of their infrastructure to support the growth from 30,000 new users every day. With subscriptions to MySQL Cluster CGE, which includes Oracle Premier Support and MySQL Cluster Manager in an integrated offering, Playful Play has access to qualified technical and consultative support which is also very important to them.<\/p>\n<p>Playful Play currently supports more than four million subscribers with MySQL.<\/p>\n<p>More details on their use of MySQL Cluster are <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/blogs.oracle.com\/MySQL\/entry\/mysql_cluster_powers_el_chavo');\"  href=\"https:\/\/blogs.oracle.com\/MySQL\/entry\/mysql_cluster_powers_el_chavo\">here.<\/a><\/p>\n<p><strong>Q5. What are the current new commercial extensions for MySQL Enterprise Edition? How do commercial extensions differ from standard open source features of MySQL? <\/strong><\/p>\n<p><strong>Tomas Ulin: <\/strong>MySQL Community Edition is available to all at no cost under the GPL. MySQL Enterprise Edition includes advanced features, management tools and technical support to help customers improve productivity and reduce the cost, risk and time to develop, deploy and manage MySQL applications. It also helps customers improve the performance, security and uptime of their MySQL-based applications.<\/p>\n<p>This <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.oracle.com\/pls\/ebn\/swf_viewer.load?p_shows_id=10146324');\"  href=\"http:\/\/www.oracle.com\/pls\/ebn\/swf_viewer.load?p_shows_id=10146324\">link<\/a> is to a short demo that illustrates the added value MySQL Enterprise Edition offers.<\/p>\n<p>Further details about all the commercial extensions can be found in this <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.mysql.com\/why-mysql\/white-papers\/mysql_wp_enterprise_ready.php');\"  href=\"http:\/\/www.mysql.com\/why-mysql\/white-papers\/mysql_wp_enterprise_ready.php \">white paper.<\/a> (<em>Edit:\u00a0You must be logged in to access this content<\/em>.)<\/p>\n<p>The newest additions to MySQL Enterprise Edition, released last fall during MySQL Connect, include:<\/p>\n<p>* <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.mysql.com\/products\/enterprise\/audit.html');\"  href=\"http:\/\/www.mysql.com\/products\/enterprise\/audit.html\">MySQL Enterprise Audit<\/a>, to quickly and seamlessly add policy-based auditing compliance to new and existing applications.<\/p>\n<p>* Additional <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.mysql.com\/products\/enterprise\/high_availability.html');\"  href=\"http:\/\/www.mysql.com\/products\/enterprise\/high_availability.html\">MySQL Enterprise High Availability<\/a> options, including Distributed Replicated Block Device (DRBD) and Oracle Solaris Clustering, increasing the range of certified and supported HA options for MySQL.<\/p>\n<p><strong>Q6. In September 2012, Oracle announced the first development milestone release of MySQL Cluster 7.3. What is new?<br \/>\n<\/strong><\/p>\n<p><strong>Tomas Ulin: <\/strong>The release comprises:<br \/>\n\u2022   Development Release 1: MySQL Cluster 7.3 with Foreign Keys.  This has been one of the most requested enhancements to MySQL Cluster &#8211; enabling users to simplify their data models and application logic &#8211; while extending the range of use-cases.<br \/>\n\u2022   Early Access &#8220;Labs&#8221; Preview: MySQL Cluster NoSQL API for Node.js.  Implemented as a module for the V8 engine, the new API provides Node.js with a native, asynchronous JavaScript interface that can be used to both query and receive results sets directly from MySQL Cluster, without transformations to SQL. This gives lower latency for simple queries, while also allowing developers to build \u201cend-to-end\u201d JavaScript based services \u2013 from the browser, to the web\/application layer through to the database, for less complexity.<br \/>\n\u2022  Early Access &#8220;Labs&#8221; Preview: MySQL Cluster Auto-Installer. Implemented with a standard HTML GUI and Python-based web server back-end, the Auto-Installer intelligently configures MySQL Cluster based on application requirements and available hardware resources. This makes it simple for DevOps teams to quickly configure and provision highly optimized MySQL Cluster deployments &#8211; whether on-premise or in the cloud.<\/p>\n<p>Additional details can be found <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/dev.mysql.com\/tech-resources\/articles\/cluster-7.3-dmr.html');\"  href=\"http:\/\/dev.mysql.com\/tech-resources\/articles\/cluster-7.3-dmr.html\">here.<\/a><\/p>\n<p><strong>Q7. \u00a0John Busch, previously CTO of former Schooner Information Technology commented in a recent interview (1): \u201clegacy MySQL does not scale well on a single node, which forces granular sharding and explicit application code changes to make them sharding-aware and results in low utilization of severs\u201d. What is your take on this? <\/strong><\/p>\n<p><strong>Tomas Ulin: <\/strong>Improving scalability on single nodes has been a significant area of development, for example MySQL 5.6 introduced a series of enhancements which have been further built upon in the server, optimizer and InnoDB storage engine. Benchmarks are showing close to linear scalability for systems with 48 cores \/ threads, with 230% higher performance than MySQL 5.5.  Details are <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/dev.mysql.com\/tech-resources\/articles\/mysql-5.6-rc.html');\"  href=\"http:\/\/dev.mysql.com\/tech-resources\/articles\/mysql-5.6-rc.html\">here.<\/a><\/p>\n<p><strong>Q8. \u00a0Could you please explain in your opinion the trade-off between scaling out and scaling up?  What does it mean in practice when using MySQL? <\/strong><\/p>\n<p><strong>Tomas Ulin: <\/strong>On the scalability front, MySQL has come a long way in the last five years and  MySQL 5.6 has made huge improvements here &#8211; depending on your workload, you may scale well up to 32 or 48 cores. While the old and proven techniques can work well as well: you may use master -slave(s) replication and split your load by having writes on the master only, while reads on slave(s), or using &#8220;sharding&#8221; to partition data across multiple computers. The question here is still the same: do you hit any bottlenecks on a single (big) server or not?&#8230; &#8211; and if yes, then you may start to think which kind of &#8220;distributed&#8221; solution is more appropriate for you. And it&#8217;s not only MySQL server related &#8212; similar problems and solutions are coming with all applications today targeting a high load activity.<\/p>\n<p>Some things to consider\u2026<br \/>\n<em>Scale-up pros:<\/em><br \/>\n&#8211; easier management<br \/>\n&#8211; easier to achieve consistency of your data<\/p>\n<p><em>Scale-up cons:<\/em><br \/>\n&#8211; you need to dimension your server up-front, or take into account the cost of throwing away your old hardware when you scale<br \/>\n&#8211; cost\/performance is typically better on smaller servers<br \/>\n&#8211; in the end higher cost<br \/>\n&#8211; at some point you reach the limit, i.e. you can only scale-up so much<\/p>\n<p><em>Scale-out pros:<\/em><br \/>\n&#8211; you can start small with limited investment, and invest incrementally as you grow, reusing existing servers<br \/>\n&#8211; you can choose hardware with the optimal cost\/performance<\/p>\n<p><em>Scale-out cons:<\/em><br \/>\n&#8211; more complicated management<br \/>\n&#8211; you need to manage data and consistency across multiple servers, typically by making the application\/middle tier aware of the data distribution and server roles in your scale-out (choosing MySQL Cluster for scale-out does not incur this con, only if you choose a more traditional master-slave MySQL setup)<\/p>\n<p><strong>Q9. \u00a0How can you obtain scalability and high-performance with Big Data and at the same time offer SQL joins? <\/strong><\/p>\n<p><strong>Tomas Ulin: <\/strong>Based on estimates from leading Hadoop vendors, around 80 percent of their deployments are integrated with MySQL.<\/p>\n<p>As discussed above, there has been significant development in NoSQL APIs to InnoDB and MySQL Cluster storage engines which allow high speed ingestion of high velocity data Key\/Value data, but which also allows complex  queries, including JOIN operations to run across that same data set using SQL.<\/p>\n<p>Technologies like <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/sqoop.apache.org');\"  href=\"http:\/\/sqoop.apache.org\">Apache Sqoop<\/a> are commonly used to load data to and from MySQL and Hadoop, so many users will JOIN structured, relational data from MySQL with unstructured data such as clickstreams within Map\/Reduce processes within Hadoop.  We are also working on our Binlog API to enable real time CDC with Hadoop.\u00a0More on the Binlog API is <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/intuitive-search.blogspot.co.uk\/2011\/07\/binary-log-api-and-replication-listener.html');\"  href=\"http:\/\/intuitive-search.blogspot.co.uk\/2011\/07\/binary-log-api-and-replication-listener.html\">here.<\/a><\/p>\n<p><strong>Q10. \u00a0Talking about scalability and performance what are the main differences if the database is stored on hard drives, SAN, flash memory (Flashcache)? What happens when data does not fit in DRAM? <\/strong><\/p>\n<p><strong>Tomas Ulin: <\/strong>The answer depends on your workload.<br \/>\nThe most important question is: &#8220;how long is your active data set remaining cached?&#8221; &#8212; if not long at all, then it means your activity will remain I\/O-bound, and having  faster storage here will help. But, if the &#8220;active data set&#8221; is small enough to be cached most of the time, the impact of the faster storage will not be as noticeable. MySQL 5.6 delivers many changes improving performance on heavy I\/O-bound workloads.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n<em>Mr. <strong>Tomas Ulin <\/strong>has been working with the MySQL Database team since 2003. He is Vice President for the MySQL Engineering team, responsible for the development and maintenance of the MySQL related software products within <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.oracle.com');\"  href=\"http:\/\/www.oracle.com\">Oracle<\/a>, such as the MySQL Server, MySQL Cluster, MySQL Connectors, MySQL Workbench, MySQL Enterprise Backup, and MySQL Enterprise Monitor. Prior to working with MySQL his background was in the telecom industry, working for the Swedish telecom operator Telia and Telecom vendor Ericsson. He has a Masters degree in Computer Science and Applied Physics from Case Western Reserve University and a PhD in Computer Science from the Royal Institute of Technology.<\/em><\/p>\n<p><strong>Related Posts<\/strong><\/p>\n<p><strong>(1): <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.odbms.org\/blog\/2012\/02\/a-super-set-of-mysql-for-big-data-interview-with-dr-john-busch-schooner\/');\"  href=\"http:\/\/www.odbms.org\/blog\/2012\/02\/a-super-set-of-mysql-for-big-data-interview-with-dr-john-busch-schooner\/\">A super-set of MySQL for Big Data. Interview with John Busch, Schooner. on February 20, 2012<\/a><\/strong><\/p>\n<p><strong>(2): <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.odbms.org\/blog\/2012\/10\/scaling-mysql-and-mariadb-to-tbs-interview-with-martin-farach-colton\/');\"  href=\"http:\/\/www.odbms.org\/blog\/2012\/10\/scaling-mysql-and-mariadb-to-tbs-interview-with-martin-farach-colton\/\">Scaling MySQL and MariaDB to TBs: Interview with Mart\u00edn Farach-Colton. on October 8, 2012. <\/a><\/strong><\/p>\n<p><strong>&#8211;<a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.odbms.org\/blog\/2012\/10\/on-eventual-consistency-interview-with-monty-widenius\/');\"  href=\"http:\/\/www.odbms.org\/blog\/2012\/10\/on-eventual-consistency-interview-with-monty-widenius\/\">On Eventual Consistency\u2013 Interview with Monty Widenius.on October 23, 2012<\/a><\/strong><\/p>\n<p><strong>Resources<\/strong><\/p>\n<p><strong>ODBMS.org: Relational Databases, NewSQL, XML Databases, RDF Data Stores: <\/strong><br \/>\n<a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.odbms.org\/downloads.aspx#dbms');\"  href=\"http:\/\/www.odbms.org\/downloads.aspx#dbms\">Blog Posts | Free Software | Articles and Presentations| Lecture Notes | Tutorials| Journals |<\/a><\/p>\n<p><strong>Follow us on Twitter: <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/twitter.com\/odbmsorg');\"  href=\"https:\/\/twitter.com\/odbmsorg\">@odbmsorg<\/a><\/strong><\/p>\n<p>##<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>&#8220;With MySQL 5.6, developers can now commingle the &#8220;best of both worlds&#8221; with fast key-value look up operations and complex SQL queries to meet user and application specific requirements&#8221; &#8211;Tomas Ulin. On February 5, 2013, Oracle announced the general availability of MySQL 5.6. I have interviewed Tomas Ulin, Vice President for the MySQL Engineering team [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[43,66,73,239,280,353,372,395,397,412,446,474,499,518,519],"_links":{"self":[{"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/posts\/2007"}],"collection":[{"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/comments?post=2007"}],"version-history":[{"count":0,"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/posts\/2007\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/media?parent=2007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/categories?post=2007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.odbms.org\/blog\/wp-json\/wp\/v2\/tags?post=2007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}