How can I generate a sequence of numbers in orleans without using external providers?

56 Views Asked by At

I'd like to have a similar behavior that Postgres sequences have in a grain itself. So I can give a unique number to each incoming request without going to a DB.

I can use a DB sequence but then my API will be depend on a DB connection.

Is it a good task for Orleans or it's better to ask a DB for the number?

0

There are 0 best solutions below