locked
Azure function app needs to be restarted after database change. RRS feed

  • Question

  • User-1266083892 posted

    Hi,

    I have a function app which provides set of apis to a mobile app. And I have a web interface to update the values in the database.

    But, if I make any change in the database through the web interface, I  need to restart the function app to reflect the latest database changes.

    The APIs are not returning the latest values without restart.

    Is there any other alternative to reflect the database changes without restart.

    Please help.

    Friday, August 3, 2018 7:25 AM

All replies

  • User283571144 posted

    Hi priya.renjith,

    But, if I make any change in the database through the web interface, I  need to restart the function app to reflect the latest database changes.

    The APIs are not returning the latest values without restart.

    It is strange that you must restart the function to get the database changed value.

    I guess this may related with the azure function cache.

    I suggest you could firstly check you have enabled the cache for the azure function.

    Then I suggest you could use postman to send the request to the azure function to check you have got the update database value.

    If this still couldn't solve your issue, I suggest you could post the details codes and setting about your azrue function for us to reproduce the issue. 

    Best Regards,

    Brando

    Monday, August 6, 2018 2:38 AM