Welcome!

Java IoT Authors: Pat Romanski, Elizabeth White, Liz McMillan, Yeshim Deniz, Frank Lupo

Related Topics: Java IoT, Open Source Cloud, @CloudExpo

Java IoT: Interview

Scaling Java From the Enterprise To the Cloud

Quick Q&A with Geert Bevin, Evangelist, Terracotta Inc.

Simple scalability - that's the Terracotta value proposition. In this Quick Q&A with SYS-CON's Cloud Computing Journal editor-in-chief Alan Williamson, Geert Bevin (pictured) - Evangelist at Terracotta Inc - explains that how Terracotta helps enable Java in the Cloud...and clarifies the difference between the commercial and OSS editions of Terracotta.

Cloud Computing Journal: In a nutshell what is Terracotta?

Bevin: Terracotta's primary value is simple scalability. We deliver this using a high-performance distributed durable caching technology we call Network Attached Memory (NAM): NAM hooks right into the memory of the Java Virtual Machine (JVM) and allows users to share critical in-memory data between servers within the application tier, thereby avoiding unnecessary use of the database as a coordination point or a high availability mechanism. Databases as central "traffic cops" could become a scalability issue in many applications, especially those deployed in cloud infrastructures. We work with a lot of Java frameworks, including Spring and Hibernate, in a plug-in fashion, but you can also use Terracotta to scale and cluster Plain Old Java Object (POJO) applications as well, since we can hook directly into Java memory at the platform level.

Cloud Computing Journal: Is this a more sophisticated memcached for Java?

Bevin: Many people have used memcached with great success, but Terracotta does offer some capabilities that memcached does not. First, for those parts of memory it has been configured to share, Terracotta writes all memory changes asynchronously to disk, so the memory state is recoverable in the event of any hardware failures or machine restarts. With Terracotta, a server shutdown or power failure doesn’t mean important context for the application is lost. Second, Terracotta can provide a distributed read/write cache that is coherent across all application nodes. Also, Terracotta also has an in-process caching layer right in the application server’s local JVM, so many reads never even leave the local machine; with memcached, you have at least one network hop for any read out of the cache.

Cloud Computing Journal: To what is Terracotta ideally suited?

Bevin: Terracotta is ideally suited to applications where scalability is a concern, where you need expand capacity on the application tier easily while maintaining high performance or when you want to ensure that any member of the application tier can take work over from another with no loss in application state. In applications where the database is being used as a central point of coordination, Terracotta can be an excellent fit for reducing database bottlenecks and database licensing and hardware costs.

Cloud Computing Journal: Is Terracotta Java for the cloud essentially?

Bevin: Terracotta definitely makes it much easier to run Java applications in cloud environments, since we can make elastic expansion and contraction of the application tier much simpler to manage. Terracotta shares data with just TCP/IP ­ unlike many other solutions, theree are no multicast requirements, so set-up and provisioning are much simpler. Our partnership with VMware augments this capability, giving users all the push-button management capabilities they expect from VMware, including easy provisioning with server isolation, guaranteed resource capacity to meet SLAs, and more efficient overall hardware utilization. Furthermore, Terracotta offers streamlined change management and enhanced application integrity from application memory that is resilient to failures/restarts and can be shared between servers. This creates a truly adaptive, on-demand deployment model in which an application server within, or added to, the cluster can seamlessly take over the workload from any other server.

Cloud Computing Journal: What is the maximum amount of memory I can store?

Bevin: Online, the "hot" items need to be in RAM because Terracotta automatically swaps the least-used portions of Java heap out to our server array where everything is also copied to disk for recoverability. Essentially, the Java heap can be as big as the available disk, subject of course to reasonable garbage collection considerations. This means users can build a distributed cache without worrying about the amount of RAM on each machine. You don't need enough RAM to contain the whole cache.

Cloud Computing Journal: Just how much can Terracotta scale out to?

Bevin: Terracotta is deployed in some very large applications in industries like financial services, travel and leisure and online gaming. Terracotta delivers mainframe-class transaction volumes with dozens of connected application servers and multi-server Terracotta Server Arrays. The product is also deployed in a large number of applications with two application servers where Terracotta’s HTTP session replication was faster and simpler that other solutions. So there is a range of successful deployments, from two servers to 150 running on Terracotta.

Cloud Computing Journal: Have you any numbers you can share, with say, Amazon EC2?

Bevin: Terracotta has been working on EC2 for more than two years now to include some customers who run key IT components for their business entirely on EC2. We’re in the midst of some testing to establish performance numbers we can share in more detail later, but it is already clear that Terracotta scales linearly in EC2. In our benchmark HTTP session replication test the application scaled linearly to 35 JVMs with one Terracotta server in the server array, and when a second Terracotta server was added, the application scaled linearly to 70 JVMs. We can very easily add or reduce incremental capacity to an application in EC2 to meet changes demand; more importantly, we can also make sure that new servers are immediately aware of application context so they can take over activity and ensure that no work is lost as servers are taken offline. The in-memory data the application needs to function seamlessly across changes in cloud topology is all handled easily and reliably within Terracotta. The types and number of EC2 machine instances you need will, of course, vary with workload, especially since throughput tends to be a bit lower in cloud infrastructures.

Cloud Computing Journal: What is the difference between the commercial and OSS editions of Terracotta?

Bevin: The free OSS edition, Terracotta ES, has all the core clustering features that enable simple scale-out for Java applications, as well as the Developer console that customers use as a valuable visual tuning aid to eliminate a lot of work. Terracotta ES is a great way to do development and testing; when you get to production, though, you should consider Terracotta EX or Terracotta FX. Terracotta EX has the same general feature set as ES, but comes with phone support, support SLA, and a commercial license with wider distribution rights. Terracotta FX includes the support access, SLA, and commercial license of Terracotta EX and adds not only Terracotta Server Array Striping, which allows users to stripe data across an arbitrary number of Terracotta servers, but also the Operations Center, a user interface that lets operators manage a number of applications running on Terracotta more easily (including taking backups and performing advanced diagnostics).

Cloud Computing Journal: A Terracotta server is always required; what sort of specification does that machine need to have to ensure the whole cluster does not suffer performance?

Bevin: The right specification for the servers in the Terracotta Server Array depends on the application workload, but we have seen applications run successfully on a range of devices, from commodity x86 hardware to bigger machines like SPARC gear from Sun. The same goes for a case like EC2, where we've seen various machines in use, depending on workload.

Cloud Computing Journal: How do network delays affect the distributed nature of the app?

Bevin: Terracotta only sends the bytes that change over the wire, not entire objects, so we're less sensitive to network delays than competitive solutions , which generally cannot propagate these "fine grained" changes to data as well as we can. Also, if you load-balance and constrain data overlap on application servers, there is very little coupling between machines; this means that only a reasonable amount of data needs to be sent through Terracotta to provide proper coordination, further reducing any sensitivity to network delays.

More Stories By Alan Williamson

Alan Williamson is widely recognized as an early expert on Cloud Computing, he is Co-Founder of aw2.0 Ltd, a software company specializing in deploying software solutions within Cloud networks. Alan is a Sun Java Champion and creator of OpenBlueDragon (an open source Java CFML runtime engine). With many books, articles and speaking engagements under his belt, Alan likes to talk passionately about what can be done TODAY and not get caught up in the marketing hype of TOMORROW. Follow his blog, http://alan.blog-city.com/ or e-mail him at cloud(at)alanwilliamson.org.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
SYS-CON Events announced today that TidalScale will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale is the leading provider of Software-Defined Servers that bring flexibility to modern data centers by right-sizing servers on the fly to fit any data set or workload. TidalScale’s award-winning inverse hypervisor technology combines multiple commodity servers (including their ass...
As hybrid cloud becomes the de-facto standard mode of operation for most enterprises, new challenges arise on how to efficiently and economically share data across environments. In his session at 21st Cloud Expo, Dr. Allon Cohen, VP of Product at Elastifile, will explore new techniques and best practices that help enterprise IT benefit from the advantages of hybrid cloud environments by enabling data availability for both legacy enterprise and cloud-native mission critical applications. By rev...
Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
SYS-CON Events announced today that N3N will exhibit at SYS-CON's @ThingsExpo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. N3N’s solutions increase the effectiveness of operations and control centers, increase the value of IoT investments, and facilitate real-time operational decision making. N3N enables operations teams with a four dimensional digital “big board” that consolidates real-time live video feeds alongside IoT sensor data a...
Amazon is pursuing new markets and disrupting industries at an incredible pace. Almost every industry seems to be in its crosshairs. Companies and industries that once thought they were safe are now worried about being “Amazoned.”. The new watch word should be “Be afraid. Be very afraid.” In his session 21st Cloud Expo, Chris Kocher, a co-founder of Grey Heron, will address questions such as: What new areas is Amazon disrupting? How are they doing this? Where are they likely to go? What are th...
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, will lead you through the exciting evolution of the cloud. He'll look at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering ...
Digital transformation is changing the face of business. The IDC predicts that enterprises will commit to a massive new scale of digital transformation, to stake out leadership positions in the "digital transformation economy." Accordingly, attendees at the upcoming Cloud Expo | @ThingsExpo at the Santa Clara Convention Center in Santa Clara, CA, Oct 31-Nov 2, will find fresh new content in a new track called Enterprise Cloud & Digital Transformation.
SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp emp...
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
Most technology leaders, contemporary and from the hardware era, are reshaping their businesses to do software. They hope to capture value from emerging technologies such as IoT, SDN, and AI. Ultimately, irrespective of the vertical, it is about deriving value from independent software applications participating in an ecosystem as one comprehensive solution. In his session at @ThingsExpo, Kausik Sridhar, founder and CTO of Pulzze Systems, will discuss how given the magnitude of today's applicati...
As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
SYS-CON Events announced today that Avere Systems, a leading provider of enterprise storage for the hybrid cloud, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere delivers a more modern architectural approach to storage that doesn't require the overprovisioning of storage capacity to achieve performance, overspending on expensive storage media for inactive data or the overbui...
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
SYS-CON Events announced today that Avere Systems, a leading provider of hybrid cloud enablement solutions, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere Systems was created by file systems experts determined to reinvent storage by changing the way enterprises thought about and bought storage resources. With decades of experience behind the company’s founders, Avere got its ...
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, will discuss how by using...
In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...
SYS-CON Events announced today that CAST Software will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CAST was founded more than 25 years ago to make the invisible visible. Built around the idea that even the best analytics on the market still leave blind spots for technical teams looking to deliver better software and prevent outages, CAST provides the software intelligence that matter ...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ruby Development Inc. builds new services in short period of time and provides a continuous support of those services based on Ruby on Rails. For more information, please visit https://github.com/RubyDevInc.