EJB Scalability

EJB Scalability

Question:
One of EJB’s obvious design goals was to provide an environment thatcan scale up to meet the demands of enterprise applications. I’mcurious, however, about the other end of the scalability spectrum aswell. I would like to write an application that can scale up to meetenterprise demands, but can also be easily used by a single individualworking on a non-networked laptop computer. If I build myapplication with EJB, will I alienate this user base?

Answer:
You will not necessarily alienate non-networkedindividuals by using EJB, but you will have to package the EJBcomponents and runtime environment for the individual. Therefore,EJBs that mediate access to multi-gigabyte databases are a no-go. Aquick analogy is the use of CORBA on the desktop in the same role ofCOM as is done by the GNOME desktop environment for Linux. Distributedobjects just give you a simpler way of performing interprocesscommunication and it’s ok for that communication to happen on the samemachine.

However, your caution is well-justified. EJB is designed forrelatively coarse-grained components involved in transaction-orienteddistributed applications. This involves modeling database entitiesand business rules as objects. The typical EJB deployment environmentis in three-tier systems. The first tier usually contains a relatively thinclient. The second tier contains EJB components that validate inputs,enforce business rules, and mediate access to databases. The thirdtier contains the actual databases that drive the application. Butthree-tier systems need not be deployed across a network. They can bedeployed on a laptop. By doing so, you gain the advantage of nothaving to rearchitect your network application for the desktop.

An important thing you lose by using EJB is the ability toproduce a lightweight application for the low-end. The key is to usethe approach where appropriate. It is easy to imagine a salesdatabase query system implemented with EJB. Salespeople may need toreplicate a subset of the enterprise data to their laptops for usewhen they go out in the field. There would be no reason to redesignthe distributed application when it could run unchanged in the singleuser environment. However, it would probably impose a largerfootprint than a reimplemented system because of the need to bundlethe EJB server.

Share the Post:
XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes

ransomware cyber attack

Why Is Ransomware Such a Major Threat?

One of the most significant cyber threats faced by modern organizations is a ransomware attack. Ransomware attacks have grown in both sophistication and frequency over the past few years, forcing

data dictionary

Tools You Need to Make a Data Dictionary

Data dictionaries are crucial for organizations of all sizes that deal with large amounts of data. they are centralized repositories of all the data in organizations, including metadata such as