top | item 20111209

(no title)

nathan-io | 6 years ago

> an API developer not wanting to write own/reinvent cache layer for their REST API

For Laravel projects at least, a package like spatie/laravel-responsecache makes it super easy to handle caching for GET API routes. I'm sure there are similar packers for other frameworks often used in API development.

I really like Bloom, I'd just rather handle it at the application layer, where I can get the finest level of customization (assuming there's a suitable package to abstract the most tedious work away).

Seems you could keep the associated code to a minimum, and easily maintainable, by using model events to trigger cache updates.

Personally, I'd rather have a little more code than a new dependency (and the resources the Bloom takes from each API worker it's installed on). But in situations where it's non-trivial or inadvisable to do it at the application layer, it seems Bloom could be quite useful.

discuss

order

No comments yet.