January 2018
Intermediate to advanced
336 pages
7h 56m
English
The Service microservice uses Datomic as the local database to store the service details. Service maintains a provider ID as well. Although in the schema it is defined as type :db.type/string; if a common database is used for the provider and service then it is recommended to define the provider ID of type :db.type/ref to make better use of Datomic entity references. The schema for the service database consists of the following attributes:
| :db/ident | :db/valueType | :db/cardinality | :db/index | :db/fulltext | :db/unique | :db/doc |
| :service/id | :db.type/string | :db.cardinality/one | true | false | :db.unique/identity | Unique service ID |
| :service/type | :db.type/string | :db.cardinality/one | true | true | - | Type of service |
| :service/provider ... |
Read now
Unlock full access