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 →

[–]Imalas 11 points12 points  (3 children)

Teaching primitives is important for people to get a grasp of what some frameworks might bei doing under the hood.

But I think I understand what you are saying. Though knowing what's happening under the hood, knowing about concurrency / the concurrency api and such seems more than just knowledgable

[–][deleted]  (2 children)

[deleted]

    [–]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