I have some confusion regarding “When should we use disributed architecture”.
I know concept behind the disributed architecture. When we want different component interact with each other then we should use disributed architecture.
What are the examples of application where we use the disributed architecture?
I always seen that when we develope shopping cart we use EJB. Is it that necessary?
We can design shopping cart without EJB too.
Hope this helps.
In distributed architecture different pieces of your application are located in different physical nodes as opposed to clustered architecture, where the same application (all components) are deployed on all nodes.
You may want to have a distributed architecture when:
And yes, you can implement shopping cart with session EJB (e.g. using HTTP session). But in both cases this should rather be called clustering rather than distributing.