We plan to develop an Azure function for which the input trigger is a service bus message and the output will consist of memory. The service bus message will contain the image URL, and the function will resize the image to a predetermined resolution and will be loaded into the azure blob repository.
The resolution to which the image should be changed is stored in the database, and Azure functions must be called into the database to find out the resolution that is supposed to be used for the image in the input message. In fact, the resolution will be basic data configured based on the source of the input message.
Making a database call will be an expensive call, since for each call it will need to go to the database. Is there a way to cache data and use it without calling the database. How about memory caching?
source
share