image: https: //img.shields.io/badge/vert.x-3.8.3-purple.svg [link = "https://vertx.io"]
TP Cara Vertx
Context:
To simulate the arrival of Customers, Restaurant Vericle sends Json messages to the Server containing a customer and its status.
At this stage, the sent messages are lost, you can see it by launching the application:
''
Failed to send to: restaurant.serveur
Failed to send to: restaurant.serveur
Failed to send to: restaurant.serveur
''
Modify the code to start several occurrences of Servers Verticles and Cook verticles using the variables serversNb and cooksNb
Set up the reception of messages sent by the Restaurant (typed Customer sent in Json format)
At the reception of a customer, count it in a Counter counter in a space vertx.sharedData ()
Same as question 4 but this time store the client object in a Map (LocalMap or AsynchronousMap) When welcoming a customer, store the customer in a vertx.sharedData () space typed Map
image: https: //img.shields.io/badge/vert.x-3.8.3-purple.svg [link = "https://vertx.io"]
Context:
We will try to implement an HTTP server so that we can display the results we receive on the console in a web page.
Implement an Http server in the RestaurantVerticle class. Implement a vertx router.
Implement a handler to pass paramateres on a specified url Pass the answer towards the road.
image: https: //img.shields.io/badge/vert.x-3.8.3-purple.svg [link = "https://vertx.io"]
TP Cara Vertx
Context:
The preparation of dishes in the kitchen takes more or less long. this time spent blocks the eventloop and penalizes the overall application.