Table of content



The Customer entity within the microservice architecture

Entity-Relationship-Model of <EmployeeService>

Entity Name: Customer

Data Schema: AirportLogistics

Master Service: EmployeeService


Dataflow of entity of Customer

Microservices

3.1 AirplaneService3.2 AirportService3.3 CargoService3.4 CountryService3.5 EmployeeService3.6 LuggageService
3.7 PassengerBookingService

Entity Properties

Property NameDatatypeData EntityReference Entity
CustomerNameSTRINGCustomer
PrimaryKeyLONGCustomer
ServerReplicationVersionLONGCustomer

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/cargobooking/customer/{id}GETfindAllCargoBookingOfCustomer(id)EmployeeServiceCustomer CargoBooking
/customer/{id}PUTupdateCustomerById(customer)EmployeeServiceCustomer
/customer/{id}DELETEdeleteCustomerById(id)EmployeeServiceCustomer
/customer/{id}GETfindCustomerById(id)EmployeeServiceCustomer
/customerPOSTinsertCustomer(customer)EmployeeServiceCustomer
/customerGETfindAllCustomer()EmployeeServiceCustomer

Distributed transaction of <Customer>

Pseudo code snippet

final Customer customer = (Customer) this.callMicroservice(ServiceNames.EMPLOYEE_SERVICE + "/customer/" + id, Customer.class);
if (customer != null) {
}
return customer;


Table of content