Microservice generating sequence numbers for resources.
555
Microservice generating sequence numbers for resources.
Add the following snippet to your docker-compose.yml:
sequence-numbers:
image: rollvolet/sequence-numbers-service
Add the following rule to the dispatcher config in ./config/dispatcher/dispatcher.ex
post "/sequence-numbers/*path", @json do
Proxy.forward conn, path, "http://sequence-numbers/sequence-numbers/"
end
Get the next sequence number for a product
Example response body
{
"data": {
"type": "sequence-number",
"id": "712a8670-2c45-11eb-865b-d941594a75d9",
"attributes": {
"value": 6344
}
}
}
Reset the in-memory cache of sequence numbers
Get the current state of the in-memory sequence numbers cache
Example response body
{
"data": {
"type": "sequence-number",
"id": "712a8670-2c45-11eb-865b-d941594a75d9",
"attributes": {
"value": 6344
}
}
}
Content type
Image
Digest
sha256:49154e308…
Size
65.2 MB
Last updated
over 2 years ago
docker pull rollvolet/sequence-numbers-service