Java IoT Authors: Pat Romanski, Stackify Blog, Elizabeth White, Liz McMillan, Mamoon Yunus

Related Topics: Java IoT

Java IoT: Article

Why Web Applications Can be Problematic and Unreliable

Why Web Applications Can be Problematic and Unreliable

It's no surprise that the common perception is that Web applications are unreliable and problematic. Users often experience "404," "resource unavailable," and "network unavailable" errors or even a mysterious application error telling them to "retry the application later." The truth is, a fundamental source of all these problems is the HTTP communication layer of the Web.

The Internet was initially designed for presenting and sharing hyperlinked documents in the form of Web pages. Therefore, the communication layer is based on the HTTP "Request/Response" model, which adequately serves the purpose of page browsing. However, the Internet has since evolved far beyond simply supporting browsing activity and is now being utilized as an interactive platform for supporting mission-critical enterprise applications. However, in this context, there are still problematic Web browsing assumptions made - especially with regard to the messaging layer - when it comes to Web application development.

First off, the Web's messaging layer does not support guaranteed message delivery. When a user submits a request to the server, whether this request will actually arrive at the server or not is unpredictable. If there is a network problem (either with the ISP or within the corporate network), there is a good chance the request will be lost. However, this is not always a problem for Internet browsing, as the user can always click the link a second and third time if the first URL request is lost. Although this seems like a basic example, it's a serious problem for mission-critical enterprise applications. The point is, it's not out of the realm of pos-sibility that a multi-million dollar transaction can literally be "riding on the line."

Another factor to consider is that the Web's messaging layer does not guarantee the order of message delivery. If the user submits two requests in a row, there is no guarantee that the first request will arrive at the server before the second request. Again, while this is not necessarily a problem for browsing Web pages, the result of a later request can be dependent on an earlier request when using the Internet for business applications. A random ordering of message delivery makes the application's behavior unpredictable - a pattern that many Web application users are familiar with.

Further, the Web's messaging layer does not support server-initiated or server-push communications; it supports client-pull only. In a client-pull only model, the server works like a phone that never rings. Obviously this is not a problem for browsing because the server simply responds to page requests. However, many enterprise applications require the server to initiate interactions. For example, a stock trading application needs to push the latest stock price from the server to the end user. To side step this problem, developers typically use client polling, but this significantly increases the server/network load and therefore decreases application performance.

As discussed, when considering developing and deploying Web applications, the messaging layer's unreliability and limited functionality are fundamental problems that must be seriously considered. A potential solution to the message reliability issue is to implement message queuing on both the client and server side. Thus, if a message failed to be delivered due to a temporary network problem, the message can be retrieved from the queue and re-sent once the network is available. Message queues also help guarantee the order of delivery. To get around server-push limitations, some developers leverage client-polling techniques. Although it is possible to develop a solution in-house to address some of these issues, the technical challenge can be significant and the cost to test and maintain the solution can be high.

An alternative approach is to investigate some commercially available application platforms that have built-in solutions to all these problems. Some Rich Internet Application (RIA) platform solutions now available have a built-in capability for reliable messaging and real-time server push. Such solutions not only deliver a richer application experience, but also dramatically improve the application's robustness and reliability by providing a stronger communication layer - a critical factor when considering the Internet as a means of housing enterprise-level applications.

As the Web continues to become more widely adopted as a mission-critical enterprise application platform, it's even more imperative that developers truly understand and take into consideration its flawed communication model. There are now RIA solutions available to help developers overcome these limitations. Otherwise, traditional Web applications will not only frustrate end users and IT staff, they will also introduce significant problems that disrupt everyday operations.

More Stories By Coach Wei

Coach Wei is founder and CEO of Yottaa, a web performance optimization company. He is also founder and Chairman of Nexaweb, an enterprise application modernization software company. Coding, running, magic, robot, big data, speed...are among his favorite list of things (not necessarily in that order. His coding capability is really at PowerPoint level right now). Caffeine, doing something entrepreneurial and getting out of sleeping are three reasons that he gets up in the morning and gets really excited.

Comments (6) View Comments

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.

Most Recent Comments
mike skramstad 05/27/08 04:47:20 AM EDT

I write and use error detection scripts and automatic repair routines to ensure that applications are available all the time. Essentially, looking for the '404' or other errors before users see them and fixing them automatically.

Geoffrey Wiseman 12/20/04 09:28:51 AM EST

The internet was not designed for sharing hyperlinked documents -- nor was HTTP part of the 'design of the internet'. The web is not the internet.

RK 12/15/04 09:31:02 AM EST

The beauty of the web (read HTTP) and the cause of wide adoption is most certainly its simplicity. There is no client to develop as a standard HTTP/HTML+ client is already available with users (ala browser). By far these are the reasons why web development has exploded in the last few years. I understand that this is not perfect but I would hesitate to recommend any other protocol (RIA in this case) because of the less than 10% scenario when the limitations surface as critical issues.

Robert Roach 12/14/04 09:37:22 PM EST

The author seems to be trying to lead the reader to consider RIAs. So, why not write something more substantial about that, rather than merely a passing reference to RIAs mentioned near the end of the article. Everything else written is either obvious, repetitive or in some cases wrong (Internet designed to serve http pages, huh?). Hard to take this article seriously.

disappointed 12/14/04 03:59:03 PM EST

The Internet was initially designed for presenting and sharing hyperlinked documents in the form of Web pages???

R Martin Ladner 12/14/04 05:45:56 AM EST

Consider Macromedia Flash Communications Server for reliable two-way communication between server and client.

@ThingsExpo Stories
To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. Jack Norris reviews best practices to show how companies develop, deploy, and dynamically update these applications and how this data-first...
Intelligent Automation is now one of the key business imperatives for CIOs and CISOs impacting all areas of business today. In his session at 21st Cloud Expo, Brian Boeggeman, VP Alliances & Partnerships at Ayehu, will talk about how business value is created and delivered through intelligent automation to today’s enterprises. The open ecosystem platform approach toward Intelligent Automation that Ayehu delivers to the market is core to enabling the creation of the self-driving enterprise.
The question before companies today is not whether to become intelligent, it’s a question of how and how fast. The key is to adopt and deploy an intelligent application strategy while simultaneously preparing to scale that intelligence. In her session at 21st Cloud Expo, Sangeeta Chakraborty, Chief Customer Officer at Ayasdi, will provide a tactical framework to become a truly intelligent enterprise, including how to identify the right applications for AI, how to build a Center of Excellence to ...
"We're a cybersecurity firm that specializes in engineering security solutions both at the software and hardware level. Security cannot be an after-the-fact afterthought, which is what it's become," stated Richard Blech, Chief Executive Officer at Secure Channels, in this SYS-CON.tv interview at @ThingsExpo, held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that Massive Networks 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. Massive Networks mission is simple. To help your business operate seamlessly with fast, reliable, and secure internet and network solutions. Improve your customer's experience with outstanding connections to your cloud.
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution and join Akvelon expert and IoT industry leader, Sergey Grebnov, in his session at @ThingsExpo, for an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
Because IoT devices are deployed in mission-critical environments more than ever before, it’s increasingly imperative they be truly smart. IoT sensors simply stockpiling data isn’t useful. IoT must be artificially and naturally intelligent in order to provide more value In his session at @ThingsExpo, John Crupi, Vice President and Engineering System Architect at Greenwave Systems, will discuss how IoT artificial intelligence (AI) can be carried out via edge analytics and machine learning techn...
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" 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. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big...
Consumers increasingly expect their electronic "things" to be connected to smart phones, tablets and the Internet. When that thing happens to be a medical device, the risks and benefits of connectivity must be carefully weighed. Once the decision is made that connecting the device is beneficial, medical device manufacturers must design their products to maintain patient safety and prevent compromised personal health information in the face of cybersecurity threats. In his session at @ThingsExpo...
In his session at @ThingsExpo, Arvind Radhakrishnen discussed how IoT offers new business models in banking and financial services organizations with the capability to revolutionize products, payments, channels, business processes and asset management built on strong architectural foundation. The following topics were covered: How IoT stands to impact various business parameters including customer experience, cost and risk management within BFS organizations.
SYS-CON Events announced today that CA Technologies has been named "Platinum Sponsor" of SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CA Technologies helps customers succeed in a future where every business - from apparel to energy - is being rewritten by software. From planning to development to management to security, CA creates software that fuels transformation for companies in the applic...
From 2013, NTT Communications has been providing cPaaS service, SkyWay. Its customer’s expectations for leveraging WebRTC technology are not only typical real-time communication use cases such as Web conference, remote education, but also IoT use cases such as remote camera monitoring, smart-glass, and robotic. Because of this, NTT Communications has numerous IoT business use-cases that its customers are developing on top of PaaS. WebRTC will lead IoT businesses to be more innovative and address...
An increasing number of companies are creating products that combine data with analytical capabilities. Running interactive queries on Big Data requires complex architectures to store and query data effectively, typically involving data streams, an choosing efficient file format/database and multiple independent systems that are tied together through custom-engineered pipelines. In his session at @BigDataExpo at @ThingsExpo, Tomer Levi, a senior software engineer at Intel’s Advanced Analytics ...
SYS-CON Events announced today that App2Cloud 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. App2Cloud is an online Platform, specializing in migrating legacy applications to any Cloud Providers (AWS, Azure, Google Cloud).
Recently, IoT seems emerging as a solution vehicle for data analytics on real-world scenarios from setting a room temperature setting to predicting a component failure of an aircraft. Compared with developing an application or deploying a cloud service, is an IoT solution unique? If so, how? How does a typical IoT solution architecture consist? And what are the essential components and how are they relevant to each other? How does the security play out? What are the best practices in formulating...
SYS-CON Events announced today that MobiDev, a client-oriented software development company, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MobiDev is a software company that develops and delivers turn-key mobile apps, websites, web services, and complex software systems for startups and enterprises. Since 2009 it has grown from a small group of passionate engineers and business...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
SYS-CON Events announced today that Dasher Technologies 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. Dasher Technologies, Inc. ® is a premier IT solution provider that delivers expert technical resources along with trusted account executives to architect and deliver complete IT solutions and services to help our clients execute their goals, plans and objectives. Since 1999, we'v...
SYS-CON Events announced today that Ayehu 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. Ayehu provides IT Process Automation & Orchestration solutions for IT and Security professionals to identify and resolve critical incidents and enable rapid containment, eradication, and recovery from cyber security breaches. Ayehu provides customers greater control over IT infrastructure throu...
SYS-CON Events announced today that Elastifile 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. Elastifile Cloud File System (ECFS) is software-defined data infrastructure designed for seamless and efficient management of dynamic workloads across heterogeneous environments. Elastifile provides the architecture needed to optimize your hybrid cloud environment, by facilitating efficient...