Product Search

Product Search is a simple web application that allows users to search some kind of products over multiple services and mesh-up results in a live and reactive interface. This application has typical Web 2.0 technology features like:

  • Asynchronous interactions.
  • Concurrency.
  • Live and reactive interface.
  • Complex user interaction.
  • Non-stop monitoring.
  • Data mesh-up.

So, it’s a good case study to test how JaCa-Web is good in design and develop of this king of Web applications.

Scenario

More precisely, Product Search is a possible solution of a particular scenario where we imagine the existence of N services that off er product lists with features and prices, codi fied in some standard machine-readable format. Each service lets users download an agent (typically programmed by the service supplier) that allow product searching on that service; each agent communicates with the corresponding service using its own protocol, possibly diff erent from the protocols of the other agents in the system.
The client-side in this sample Web application needs to search all services for a product that satisfi es a set of user-de fined parameters and has a price inferior to a certain user-defi ned threshold. The client also needs to periodically monitor services so as to search for new o fferings of the same product. A new o ffering satisfying the constraints should be visualised only when its price is more convenient than the currently best price. The client may fi nish its search and monitoring activities when some user-de fined conditions are met: a certain amount of time is elapsed, a good enough product is found or the user interrupts the search with a click on a proper button in the page displayed by the browser. Finally, if such an interruption took place, by pressing another button it must be possible to let the search continue from the point where it was blocked.

The main value in this case is having a small set of high-level abstractions that make it possible to keep a certain degree of modularisation, separation of concerns, and encapsulation in designing and programming applications, despite of the complexities given by aspects such as concurrency, asynchronous interactions, openness/dynamism, distribution.

Try it!

To have a try of this example, please visit its web page here . To have a look of some results, also try to search keywords like “auto” or “macchina” (there are two services with products like cars or other king of machine).

Deployment

Work in progress…

preload preload preload