Keep Learning
Keep Learning

Reputation: 39

How to change UniformInt64 partition count and partition low/high key without redeploying the service dynamically?

Hi I have a stateless service partitioned using UniformInt64 kind, Is there a way to change the partition count, high/low key on the fly without re-deploying the service? I see, with powershell command we can change the Instance count but I didnt find a way to update partition count and low/high key using same.

Upvotes: 0

Views: 498

Answers (1)

LoekD
LoekD

Reputation: 11470

You can't change partitions on the fly. To remove or add partitions, would require all stored data in all partitions to be re-partitioned. There's no support for this in SF.

To deal with this, you can introduce an intermediate service to act as sort of a 'librarian' when you need to fetch or store data. Here's a video that explains more about partitioning and the librarian service.

More docs about partitioning here and a really good blog post here.

Upvotes: 2

Related Questions