Hey Marco,
You can use custom license fields to store the "maximum" usage of the "consumable resource". Then, on the client-side send "usages" to your servers, where you can then update another customer license fields using the web API.
So, do a mix of client-side storage as well as server-side storage.