|By Sam Pullara||
|February 20, 2002 12:00 AM EST||
Application server performance. Database performance. Hardware performance. These are numbers measured in the popular press, although in most situations they have little to do with your application's real-world performance. The number one way to increase performance, the thing that gives you the biggest boost, is caching. Caching in every tier is becoming more and more prevalent. On the front end, we have caching proxy servers like Squid and AOL. On the back end, we have databases and file systems that are caching our data. This month, I'm going to talk about caching in the Web application layer of the middle tier, where your application meets the Internet.
In WebLogic Server 5.1, the JSP cache tag was introduced for caching in the Web application tier. This tag allows you to cache both input (values of variables) and output (typically, the generated HTML). Ideally, these tags can be used so you have what I call "exact caching." In other words, even though caching was introduced, no change in the functionality of the application was made because the data in the cache is always the same as the real data. This is similar to how caches are used on CPUs, databases, and file systems. Just because something is cached, it doesn't mean that it's out of date. This isn't the only way to architect your caching layer. It's also possible to analyze the system and find places where you'd rather have an out-of-date answer right now, rather than an up-to-date answer after blocking the user for a time.
Here's an example of "exact caching." On my Web site I built a DVD check-out service for the people who live in my loft building. At the time, I was experimenting with XML and wanted to use it to store all the information about the registered users and the DVDs. Since I was just using the file system, parsing the XML all the time was time consuming. However, since I knew when the application was updating the XML files, I could use the cache tag to store the results of the parse and only flush the cache when they changed. This led to an order-of-magnitude increase in speed, with no loss of functionality. Voila, "exact caching."
Similarly, in the first application of the cache tag in production, a customer used the tag to cache the content from their content management system. Since they could cache based on variables in the page, they were able to only query the update time of the document in question on each request, instead of pulling the whole document over to the file system each time. This also garnered them an order-of-magnitude improvement in performance for the affected operations.
Much more difficult to architect properly is timeout-based caching. This is the normal caching that your browser and proxy servers do. When you get a Web page back from a Web site, a time stamp is returned that tells you when the page might be out of date; it's stored in the "Expires" header. If you request the page before that time, your browser will first go to its local cache for the contents (unless you force it to return to the Web site). Obviously, this method assumes that all content on the page expires at the same time and that your primary concern is reducing the bandwidth load on the server. For many application server deployments, the primary concern isn't bandwidth, but reducing the load on the servers themselves. That's where caching in the middle-tier has its sweet spot. Timeout-based caches assume that the application developer has special knowledge about the time sensitivity of the data that is being used to generate the Web page. For instance, you might be offering 20-minute delayed stock quotes and you might decide that the most popular stocks should be cached so that when users request a quote they are given the same one as everyone else who asks within some specified period of time. Determining that period is the important part of the exercise. Let's say you decide that you're only going to update the cache every 5 seconds; the quotes are already 20 minutes old anyway. If you're getting 10 requests per second for a particular ticker, that means you get 50 requests in 5 seconds, so you're doing 50 times less work to get each quote minus the cache overhead! Quite a savings for very little loss in functionality.
As you can see, caching can tremendously improve the performance of your Web applications. Using cache tags and cache filters (new in 7.0), you can build very robust, performant, scalable applications with only a bit more careful investment in design and architecture. We have only touched the surface of what you can do with caches in the Web application layer in this article; you can find out much more about caching using these tools on my Web site at www.sampullara.com/caching.
|wesnur 03/24/10 05:28:00 AM EDT|
I agreed that caching is the best way to increase the performance of the app as it reduces expensive data trips to the data base by reducing the performance bottle neck. It’s the arena of distributed caching now as concept of local caching has become a bit old. You can’t achieve desired results if you have local cache especially if your data is distributed over many servers. There many distributed caching solution are available now days but NCache and MS Velocity being the most famous ones.
The true value of the Internet of Things (IoT) lies not just in the data, but through the services that protect the data, perform the analysis and present findings in a usable way. With many IoT elements rooted in traditional IT components, Big Data and IoT isn’t just a play for enterprise. In fact, the IoT presents SMBs with the prospect of launching entirely new activities and exploring innovative areas. CompTIA research identifies several areas where IoT is expected to have the greatest impact.
Feb. 27, 2015 02:00 AM EST Reads: 2,894
Wearable devices have come of age. The primary applications of wearables so far have been "the Quantified Self" or the tracking of one's fitness and health status. We propose the evolution of wearables into social and emotional communication devices. Our BE(tm) sensor uses light to visualize the skin conductance response. Our sensors are very inexpensive and can be massively distributed to audiences or groups of any size, in order to gauge reactions to performances, video, or any kind of presentation. In her session at @ThingsExpo, Jocelyn Scheirer, CEO & Founder of Bionolux, will discuss ho...
Feb. 27, 2015 12:00 AM EST Reads: 2,774
The explosion of connected devices / sensors is creating an ever-expanding set of new and valuable data. In parallel the emerging capability of Big Data technologies to store, access, analyze, and react to this data is producing changes in business models under the umbrella of the Internet of Things (IoT). In particular within the Insurance industry, IoT appears positioned to enable deep changes by altering relationships between insurers, distributors, and the insured. In his session at @ThingsExpo, Michael Sick, a Senior Manager and Big Data Architect within Ernst and Young's Financial Servi...
Feb. 26, 2015 11:00 PM EST Reads: 856
The Internet of Everything (IoE) brings together people, process, data and things to make networked connections more relevant and valuable than ever before – transforming information into knowledge and knowledge into wisdom. IoE creates new capabilities, richer experiences, and unprecedented opportunities to improve business and government operations, decision making and mission support capabilities. In his session at @ThingsExpo, Gary Hall, Chief Technology Officer, Federal Defense at Cisco Systems, will break down the core capabilities of IoT in multiple settings and expand upon IoE for bo...
Feb. 26, 2015 10:30 PM EST Reads: 879
SYS-CON Events announced today that Vitria Technology, Inc. will exhibit at SYS-CON’s @ThingsExpo, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. Vitria will showcase the company’s new IoT Analytics Platform through live demonstrations at booth #330. Vitria’s IoT Analytics Platform, fully integrated and powered by an operational intelligence engine, enables customers to rapidly build and operationalize advanced analytics to deliver timely business outcomes for use cases across the industrial, enterprise, and consumer segments.
Feb. 26, 2015 09:45 PM EST Reads: 821
The Internet of Things (IoT) is causing data centers to become radically decentralized and atomized within a new paradigm known as “fog computing.” To support IoT applications, such as connected cars and smart grids, data centers' core functions will be decentralized out to the network's edges and endpoints (aka “fogs”). As this trend takes hold, Big Data analytics platforms will focus on high-volume log analysis (aka “logs”) and rely heavily on cognitive-computing algorithms (aka “cogs”) to make sense of it all.
Feb. 26, 2015 07:00 PM EST Reads: 789
SYS-CON Events announced today that GENBAND, a leading developer of real time communications software solutions, has been named “Silver Sponsor” of SYS-CON's WebRTC Summit, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. The GENBAND team will be on hand to demonstrate their newest product, Kandy. Kandy is a communications Platform-as-a-Service (PaaS) that enables companies to seamlessly integrate more human communications into their Web and mobile applications - creating more engaging experiences for their customers and boosting collaboration and productiv...
Feb. 26, 2015 05:00 PM EST Reads: 1,133
From telemedicine to smart cars, digital homes and industrial monitoring, the explosive growth of IoT has created exciting new business opportunities for real time calls and messaging. In his session at @ThingsExpo, Ivelin Ivanov, CEO and Co-Founder of Telestax, shared some of the new revenue sources that IoT created for Restcomm – the open source telephony platform from Telestax. Ivelin Ivanov is a technology entrepreneur who founded Mobicents, an Open Source VoIP Platform, to help create, deploy, and manage applications integrating voice, video and data. He is the co-founder of TeleStax, a...
Feb. 26, 2015 03:30 PM EST Reads: 3,841
The industrial software market has treated data with the mentality of “collect everything now, worry about how to use it later.” We now find ourselves buried in data, with the pervasive connectivity of the (Industrial) Internet of Things only piling on more numbers. There’s too much data and not enough information. In his session at @ThingsExpo, Bob Gates, Global Marketing Director, GE’s Intelligent Platforms business, to discuss how realizing the power of IoT, software developers are now focused on understanding how industrial data can create intelligence for industrial operations. Imagine ...
Feb. 26, 2015 03:15 PM EST Reads: 1,046
Feb. 26, 2015 02:30 PM EST Reads: 2,231
Operational Hadoop and the Lambda Architecture for Streaming Data Apache Hadoop is emerging as a distributed platform for handling large and fast incoming streams of data. Predictive maintenance, supply chain optimization, and Internet-of-Things analysis are examples where Hadoop provides the scalable storage, processing, and analytics platform to gain meaningful insights from granular data that is typically only valuable from a large-scale, aggregate view. One architecture useful for capturing and analyzing streaming data is the Lambda Architecture, representing a model of how to analyze rea...
Feb. 26, 2015 02:00 PM EST Reads: 1,045
One of the biggest impacts of the Internet of Things is and will continue to be on data; specifically data volume, management and usage. Companies are scrambling to adapt to this new and unpredictable data reality with legacy infrastructure that cannot handle the speed and volume of data. In his session at @ThingsExpo, Don DeLoach, CEO and president of Infobright, will discuss how companies need to rethink their data infrastructure to participate in the IoT, including: Data storage: Understanding the kinds of data: structured, unstructured, big/small? Analytics: What kinds and how responsiv...
Feb. 26, 2015 02:00 PM EST Reads: 2,074
The 3rd International @ThingsExpo, co-located with the 16th International Cloud Expo - to be held June 9-11, 2015, at the Javits Center in New York City, NY - is now accepting submissions to demo smart cars on the Expo Floor. Smart car sponsorship benefits include general brand exposure and increasing engagement with the developer ecosystem.
Feb. 26, 2015 02:00 PM EST Reads: 1,584
Since 2008 and for the first time in history, more than half of humans live in urban areas, urging cities to become “smart.” Today, cities can leverage the wide availability of smartphones combined with new technologies such as Beacons or NFC to connect their urban furniture and environment to create citizen-first services that improve transportation, way-finding and information delivery. In her session at @ThingsExpo, Laetitia Gazel-Anthoine, CEO of Connecthings, will focus on successful use cases.
Feb. 26, 2015 01:15 PM EST Reads: 2,763
Sensor-enabled things are becoming more commonplace, precursors to a larger and more complex framework that most consider the ultimate promise of the IoT: things connecting, interacting, sharing, storing, and over time perhaps learning and predicting based on habits, behaviors, location, preferences, purchases and more. In his session at @ThingsExpo, Tom Wesselman, Director of Communications Ecosystem Architecture at Plantronics, will examine the still nascent IoT as it is coalescing, including what it is today, what it might ultimately be, the role of wearable tech, and technology gaps stil...
Feb. 26, 2015 12:45 PM EST Reads: 505
Feb. 26, 2015 12:30 PM EST Reads: 2,160
When it comes to the Internet of Things, hooking up will get you only so far. If you want customers to commit, you need to go beyond simply connecting products. You need to use the devices themselves to transform how you engage with every customer and how you manage the entire product lifecycle. In his session at @ThingsExpo, Sean Lorenz, Technical Product Manager for Xively at LogMeIn, will show how “product relationship management” can help you leverage your connected devices and the data they generate about customer usage and product performance to deliver extremely compelling and reliabl...
Feb. 26, 2015 12:00 PM EST Reads: 1,110
SYS-CON Events announced today that SoftLayer, an IBM company, has been named “Gold Sponsor” of SYS-CON's 16th International Cloud Expo®, which will take place June 9-11, 2015 at the Javits Center in New York City, NY, and the 17th International Cloud Expo®, which will take place November 3–5, 2015 at the Santa Clara Convention Center in Santa Clara, CA. SoftLayer operates a global cloud infrastructure platform built for Internet scale. With a global footprint of data centers and network points of presence, SoftLayer provides infrastructure as a service to leading-edge customers ranging from ...
Feb. 26, 2015 12:00 PM EST Reads: 1,555
SYS-CON Events announced today that Open Data Centers (ODC), a carrier-neutral colocation provider, will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place June 9-11, 2015, at the Javits Center in New York City, NY. Open Data Centers is a carrier-neutral data center operator in New Jersey and New York City offering alternative connectivity options for carriers, service providers and enterprise customers.
Feb. 26, 2015 12:00 PM EST Reads: 1,704
There’s Big Data, then there’s really Big Data from the Internet of Things. IoT is evolving to include many data possibilities like new types of event, log and network data. The volumes are enormous, generating tens of billions of logs per day, which raise data challenges. Early IoT deployments are relying heavily on both the cloud and managed service providers to navigate these challenges. Learn about IoT, Big Data and deployments processing massive data volumes from wearables, utilities and other machines.
Feb. 26, 2015 11:45 AM EST Reads: 2,785