[:fr]La parole est aux speakers : Hannes Van De Vreken[:]

Publié le

[:fr]Jusqu’au PHP Tour Montpellier 2018, retrouvez nos interviews de speakers pour mieux comprendre leur parcours et le sujet qu’ils aborderont lors de leur conférence !

La conférence

Caching with PSRs

In this talk you will learn what PSR-6 and PSR-16 are, why they are designed like they are, what the differences are, and how to use them. From the provided interfaces, the virtual package on Packagist.org, to the implementations available. Everything will be explained for both beginners and more experienced developers. We will dive into implementations, cache stampede protection, all using libraries we can find on Packagist.org. We will also show how to start using it today in our current applications by using adapters. The entire talk will be accompanied with code samples and live demos, showing both working and failing caching systems.

Salle Morpheus
18/05/2018
10:15-10:55

You will talk about how to use PSR for caching : did you have any tips on what to cache and when we need a cache mechanism ?

Before you cache, you need to be aware of your application’s behaviour. Profiling is a good start. By logging information, you can find places where caching could help your application’s performance the most. You can cache anything that is idempotent, runs several times with the same input and same output, and has a high latency due to the nature of the job. You can then start off with the quick wins: cache a slow query that runs thousands of times. Next up: things that are extremely slow but only need to happen a handful of times. You can even pre-compile that in a back-ground job and store it. After that it gets harder: a fast query that runs millions of times, maybe. You can save some time by avoiding millions of round-trips to the DB and lower the load on the DB.

Also beware of cache invalidation. Don’t make your caching layer too complex or you’ll be chasing caching artefacts. Your caching layer is supposed to save you time, not spend more time. Last tip: if your caching layer fails, your app should still work, albeit slower 😉

Come see my talk for more tips!

You organize meetups in Belgium : how’s the community there ?

I do! We have a very vibrant community! Nearly every province (similar size as French departments) has its own Meetup group, and then some. I am very happy I was able to give a stage to some new speakers in the past who then took their talks to conferences in other countries. Although it’s getting increasingly hard to find new speakers, these days. This is something all meetup organisers say.

You are a runner, is there any similitude between preparing a marathon and a technical talk?

Hahaha 🙂 You could say yes. If you practised a lot, then a talk/race should be easy. If your goal is to finish a marathon this is true. If you want to chase a very fast time (maybe a personal best), then a race is harder than delivering a talk: you want to push yourself harder than you’ve ever done before in training. In a technical talk, you generally want to be a bit more secure and make sure you get to the end of your presentation without accidents. You don’t want to push the boundaries on stage.

Une conférence présentée par

Hannes VAN DE VREKEN
Hannes VAN DE VREKEN
Software Engineer and Developer Advocate at getstream.io, open source user and contributor, organiser of meetups in Belgium and also an aspiring triathlete

Autres interviews

[:]