Table of content



The Employee entity within the microservice architecture

Entity-Relationship-Model of <EmployeeService>

Entity Name: Employee

Data Schema: AirportLogistics

Master Service: EmployeeService


Dataflow of entity of Employee

Microservices

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

Entity Properties

Property NameDatatypeData EntityReference Entity
AirlineLONGEmployeeAirline
FirstNameSTRINGEmployee
LastNameSTRINGEmployee
PrimaryKeyLONGEmployee
ServerReplicationVersionLONGEmployee

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/employeePOSTinsertEmployee(employee)EmployeeServiceEmployee
/cargocheck/checker/{id}GETfindAllCargoCheckOfChecker(id)CargoServiceEmployee CargoCheck
/employee/{id}DELETEdeleteEmployeeById(id)EmployeeServiceEmployee
/employeeGETfindAllEmployee()EmployeeServiceEmployee
/luggagecheck/checker/{id}GETfindAllLuggageCheckOfChecker(id)LuggageServiceEmployee LuggageCheck
/employee/airline/{id}GETfindAllEmployeeOfAirline(id)EmployeeServiceAirline Employee
/employee/{id}GETfindEmployeeById(id)EmployeeServiceEmployee
/cargobooking/employee/{id}GETfindAllCargoBookingOfEmployee(id)EmployeeServiceEmployee CargoBooking
/employeetask/employee/{id}GETfindAllEmployeeTaskOfEmployee(id)EmployeeServiceEmployee EmployeeTask
/employee/{id}PUTupdateEmployeeById(employee)EmployeeServiceEmployee

Distributed transaction of <Employee>

Pseudo code snippet

final Employee employee = (Employee) this.callMicroservice(ServiceNames.EMPLOYEE_SERVICE + "/employee/" + id, Employee.class);
if (employee != null) {
    final Airline airline1 = (Airline) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airline/" + employee.getAirline().getId(), Airline.class);
    if (airline1 != null) {
    }
}
return employee;


Table of content