Table of content



The Distributor entity within the microservice architecture

Entity-Relationship-Model of <ProductService>

Entity Name: Distributor

Data Schema: Shop

Master Service: ProductService


Dataflow of entity of Distributor

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
DistributorNameSTRINGDistributor
EmailSTRINGDistributor
PhoneNoSTRINGDistributor
PrimaryKeyLONGDistributor
ServerReplicationVersionLONGDistributor
ShopOwnerLONGDistributor

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/distributor/{id}DELETEdeleteDistributorById(id)ProductServiceDistributor
/distributorGETfindAllDistributor()ProductServiceDistributor
/distributor/{id}GETfindDistributorById(id)ProductServiceDistributor
/productdelivery/distributor/{id}GETfindAllProductDeliveryOfDistributor(id)ProductServiceDistributor ProductDelivery
/distributorPOSTinsertDistributor(distributor)ProductServiceDistributor
/distributor/{id}PUTupdateDistributorById(distributor)ProductServiceDistributor

Distributed transaction of <Distributor>

Pseudo code snippet

final Distributor distributor = (Distributor) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/distributor/" + id, Distributor.class);
if (distributor != null) {
}
return distributor;


Table of content