I’m stuck. I think I am missing something fundamental in my understanding of route calls and futures. What I am trying to achieve is something somewhat complicated, but It would be an easy task if not using futures. I would like to call functions not using requests from a specific route…
- I am letting users upload a file (like CSV formated) to server
- Interpreting/parsing the file and setting a lot of classes/models with data from that parsing and saving to database
- Extract information from the database and compare to other preset database-objects
- When finished I am serving the client with a new webpage filled with information from the calculations/operations.
This is not complicated using non-futures, but how should I go about to get it done with the complicated futures??
How can I call functions to get futures not using route?? Or… I missing something fundamental…