Example 1 : Restaurant application
The restaurant component provides the menus proposed by the restaurant to clients through the RestaurantServiceComponent.
The MenuService deployed by the MenuServiceComponent provides the menus descriptions and prices.
The RestaurantServiceComponent allows to compute the bill for a particular menu.
It interacts with the BillService provided by the BillServiceComponent through the billService
reference interface to compute the price of a particular menu with the different taxes.
In its turn, the BillServiceComponent collaborates with the VatServiceComponent that computes the VAT (Value Added Tax)
and with the TipServiceComponent that computes the tip. More informations about this cas study can be found here.
Experimentation and evaluation
The composite implementation can be found via this link : Restaurant application code.
The case study has been deployed in a Cloud environment using our deployment framework. In table 1, we present the response time of this application with
and without the elasticity facility.
Example 2 : Calculator application
The Calculator composite is composed of five components. Calculator Service Component receives
requests to call one of the basic calculation operations. Its front-end service "Calculator service"
is promoted by the composite. The calculator component calls
the four basic calculation components via its references, i.e. AddReference,
SubtractReference, MultiplyReference and DivideReference.
Add Service Component computes the sum of two double type input variables. This functionality
is provided by its AddService service. Subtract Service Component computes the difference between
two input double variables. This functionality is presented by its SubtractService service.
Multiply Service component performs the multiplication operation through its MultiplyService interface. Divide Service component divides the first double variable by the second one.
This component is accessible via its DivideService service.
More informations about this cas study can be found here.
Experimentation and evaluation
The composite implementation can be found via this link : Calculator application code.
The case study has been deployed in a Cloud environment using our deployment framework. In table 2, we present the response time of this application with
and without the elasticity facility.
Example 3 : Weather Web application
This weather application provides the weather conditions and forecast for the next days. It is made up of three components.
Global Weather Component acts as an orchestration component.
The Weather Forecast Component provides the weather forecast service.
The Widget Weather Component has a widget implementation, i.e. an HTML page with Javascript code.
This application exposes two services, one through an RMI binding and the second through a HTTP binding.
Experimentation and evaluation
The composite implementation can be found via this link : Weather application code.
The case study has been deployed in a Cloud environment using our deployment framework. In table 3, we present the response time of this application with
and without the elasticity facility.
Example 4 : Simple TTC Composite Service application
This application provides the TTC price conditions. It is made up of one component. It calculates the price including taxes of products. The component offers one service named TTc Service
promoted by the TTC Composite Service.
Experimentation and evaluation
The composite implementation can be found via this link : TTC Service code.
The case study has been deployed in a Cloud environment using our deployment framework. In table 4, we present the response time of this application with
and without the elasticity facility.
Example 5 : Where dinner Composite Service application
This application provides the nearest restaurant to the client location. It is made up of four components.
The Parking Service Component implements the Parking Service.
The Fuel Service Component provides the Fuel Service which is used by the Restaurant Menu Service Component and invokes
from the service provided by the Location Service Component. The Location Service Component provides
the Location Service and some functionalities to the Fuel Service Component and Restaurant Menu Service Component.
The Restaurant Menu Service Component is the main component that uses all the services provided by other
components.
Experimentation and evaluation
The composite implementation can be found via this link : Where dinner Service code.
The case study has been deployed in a Cloud environment using our deployment framework. In table 5, we present the response time of this application with
and without the elasticity facility.
Authors: Mohamed Graiet (mohamed.graiet1@gmail.com) -
Lazhar Hamel (lazhar.hamel@gmail.com) - Amel Mammar (amel.mammar@telecom-sudparis.eu) -
Samir Tata (samir.tata@telecom-sudparis.eu)
Last update on 29/11/2016