Need a special offer?Find out if your project fits.
+

GetAggregatedDataAsync DataServer caching

Answered
brian mulh asked on February 4, 2024

I noticed inside the FlexmonsterApiServices class the method GetAggregatedDataAsync always loads data before checking if the `SelectResponse` exists in the cache.  Are you able to move the `LoadData` call into factory function that is called when the cache does not have a value.  We implemented a custom IDataStorage class that requires some time to load that we are okay with but we'd like to only call it if we have to.  If the response is already cached in GetAggregatedDataAsync method, we shouldn't need to call LoadData.

5 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 5, 2024

Hello, Brian!
 
Thank you for reaching out to us.
 
Our Dev team will look at the described behavior and get back to you with the fix with an ETA February 19th.
We will notify you about any updates on the matter.
 
Feel free to contact us in case of any other questions.
 
Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 20, 2024

Hello, Brian!
 
Hope you are doing well.
 
Our team is happy to inform you that now data loading in Flexmonster Data Server is not happening if there is already data in the cache.
 
You are welcome to update the Data Server: https://www.flexmonster.com/doc/updating-to-the-latest-version/#update-data-server.
 
Please let us know if the fix works well for you.
 
Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster 3 days ago

Hello, Brian!

Hope you are having a great week.

Our team is wondering if you had some time to check the fix for Flexmonster Data Server. Could you please let us know if it was helpful?

Looking forward to hearing your feedback.

Kind regards,
Solomiia

Public
brian mulh 3 days ago

Solomiia,
 
Yes I updated to the latest version and this has solved the problem, thanks!

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster 3 days ago

Hello, Brian!

Thank you for your feedback.

We are glad to hear everything works well after the fix.

Feel free to contact us if any other questions arise.

Best regards,
Solomiia

Please login or Register to Submit Answer