• 3 years

    provides bold technical consulting

    What is bold consulting?

    Consulting without expertise? Consulting without the necessary domain knowledge? Consulting with high risk recommendations?

    • rmam@programming.devdeleted by creatorEnglish
      3 years

      “Here at bold consulting we gamble away nines to give you the promise of more nines. Bold consulting: experts in high risk high reward reliability. Are you bold enough for bold consulting?”

  • 3 years

    Now you can make use of the If-Modified-Since header. Return 304-not-modified if the data hasn’t changed. Now you can intelligently utilise the the client’s caching capability without sacrificing visibility and control. Using this header will let you serve new content instantly and also cache indefinitely. The best of both worlds.

    This would’ve been a great spot for an example

    • rmam@programming.devdeleted by creatorEnglish
      3 years

      Some specifics would indeed be nice, particularly when they start off by claiming “You should know when your data was last modified at the very least.” I’m not sure how feasible it is to tack a timestamp to each and every data type that’s exposed directly or indirectly through a HTTP endpoint, not to mention the overhead and complexity required to check all timestamps directly and indirectly associated with a request. This is feasible with some resources, but definitely not all, or even the majority of them. Maybe it’s ok if all your service does is serve as a thin layer over a database, but I dare say the majority aren’t like that.

      • 3 years

        To be fair a lot of ORMs provide updated_at or similar, so if you have a RESTful API you could just take that, or the max of all of them if you’re doing a more complex query. It might be a bit suboptimal but it shouldn’t be too expensive.

  • Unflushable Cache

    […] Other implementations, such as hand cranks in memory caches or even caches provided by mainstream frameworks will not expose any cache management tools. This leaves ops with the only option, to restart the service to flush the memory. (Or worse, know enough about the cache implementation to find it’s location on file system and clear it out manually.)

    This is a mistake I have made. It’s easy to overlook during development but difficult to handle afterwards if restart is not trivial.

  • Wow, the tone here is… really arrogant. When somebody starts off calling their audience idiots, I find it a little harder to read along.

    I think I’m glad I did, though. Tone aside, I think it’s a worthwhile insight to note that caching is making up for a shortcoming in your data supply, and that fixing that shortcoming if at all possible should be a priority. The author’s summary would have helped me in the past:

    Caching is a useful tool, but can be easily abused without giving any signs of the abuse.

    Don’t get involved with caching till the last minute; find any other way you can first. Optimise your application before you use the blunt tool of caching.

  • 3 years

    The Recaching section seems to only argue against simple duration caching without disclosing it, as if it were a general issue.