Question: in this assignment Implement the Client and Services in Ballerina. give me full working codes not and its all files needed. the whole setup acdording
in this assignment Implement the Client and Services in Ballerina. give me full working codes not and its all files needed. the whole setup acdording to the descrition provide all files needed to make this work
Description
In this project, we are working on part of a larger logistics system. This system handles
requests for package delivery from multiple providers, offering specialized services for
different types of shipments, such as standard delivery, express delivery, and international
delivery. The focus is on situations where customers need to schedule a package pickup
and delivery service.
Heres how it works:
When a customer wants to send a package, they submit a request to the central
logistics service through Kafka as a middleware. This request includes details such
as the type of shipment standard express, international pickup location, delivery
location, preferred time slots, and customer information first name, last name,
contact number
The logistics service processes the request and communicates with various delivery
services standard express, international to find the best available time for the
pickup and delivery based on the customers preferences. These delivery services
may need to coordinate to determine the optimal route and schedule, especially for
international deliveries.
Once the pickup and delivery times are confirmed, the logistics service sends the
complete details back to the customer, including tracking information and estimated
delivery time.
Your job is to create and set up this logistics subsystem.
Important things to note:
a The system should be designed using a microservices architecture with a central
logistics service and three specialized services: standard delivery, express
delivery, and international delivery.
b Use a Kafka instance to support the communication between the client and the
various services.
c Use a data store such as MongoDB or SQL to store customer information,
shipment details, and delivery schedules.
d Finally, deploy each service logistics standard, express, and international
delivery in separate Docker containers.
Evaluation Criteria:
Setup of the Kafka cluster, including topic management. marks
Setup of the MongoDBSQL database instance. marks
Docker container configuration. marks
Implementation of Client and Services in Ballerina marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
