question

22077969 avatar image
0 Votes"
22077969 asked KalyanChanumolu-MSFT commented

Cost distribution for Redis Cache among clients in Multi-tenant Scenario

We are using the P1 instance of redis cache to store the identity context of the logged-in users
for 3 different clients. Each clients user base (no. of users differs for each client)

We all know that P1 tier cost $404/month.

Now the problem here is we need to charge each clients based on their usage

The question here is how to calculate the cost incurred for each client.

Please help me to get the same.

Thanks in Advance,
Vijay


azure-cache-redis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KalyanChanumolu-MSFT avatar image
0 Votes"
KalyanChanumolu-MSFT answered KalyanChanumolu-MSFT commented

@VijayvigneswarSelvakumar-5228 Welcome to Microsoft Q&A forums.

Azure calculates the pricing based on hourly/monthly cost per instance.
In a multi-tenant use case, your application needs to measure the utilization by tenant based on your business logic.

As a best practice, you should have separate instance of Redis cache per tenant to ensure security of user data.
This also allows for scaling each instance as per utilization and calculating the cost separately.


If an answer is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.
And if you have further questions or issues, please let us know.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Kalyan,

Thanks for the response. Here i had mentioned 3 clients as an example. But in reality we have nearly 80+ clients. So keeping each one in single instance of Redis will lead to huge costing.

We are looking for the options to reduce the cost and balance it across the clients.

Thanks,
Vijay

0 Votes 0 ·

Hello Vijay,

Thank you for the additional context.

Unfortunately, there is no way to separately calculate the cost per tenant when all the data is hosted in a single instance. Your application will need to calculate the same.
Please refer to the best practices from Redis Labs for managing costs with Multi-tenancy in Redis Enterprise


If an answer is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.

1 Vote 1 ·