I have a Java application running on a linux VM using an Azure SQL database with a REST API connecting the front end to the backend.
My work is an extension inside a third-party application so I can't re-write it to take full advantage of cloud benefits.
The application only writes data in an overnight batch process and during the day it is just queried for web apps and reporting.
It is very low volume so speed is not a concern and the third-party application doesn't scale either.
I need to use Azure SQL for the database for various reasons so I can't switch that out. However, it is one of the larger parts of the cost.
I'd like to be able to shutdown the VM and Azure SQL Server after the write operations and have some cheaper way of running the REST API during the day for the read operations.
e.g. an in-memory database for caching or something.
For security reasons, data can only be persisted in the Azure SQL database for any length of time, although destroying the read-only part each night or each week would be fine.
Is there a way to utilise Azure features to use the more heavyweight and expensive operations for the writes and a lightweight and cheaper option for the reads?