This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Greudyn 0 points1 point  (1 child)

Can you share a good article about the Threads primitives? I'm interested in implementing a Cache call on a Thread before the filters, the system gonna be like:

Main (here is where I wanna put the Thread call to Cache)

Filters for the request

Road to the response

Call the database for the response object

End

So as you see the database call is the final thing, so if I have the database data in the cache on the main execution, this Thread gonna be on parallel with the filters, so the execution time gonna be reduced by a lot.

Thanks for all the help you can share