Blog

#php

  1. Rate limiting API requests

    You have released a public API and you want to avoid abuse? It is possible to limit access to a specific number of requests within periods of time. For example, if a user sends two successive requests when you only allow one request every 5 seconds, he will get the following answer: Rate limit exceeded, please try again in 4 seconds.

  2. Solving a Rubik's pocket cube with a graph database

    A pocket cube can have 3 674 160 different positions. For a “No-SQL” database, it’s a piece of cake. Neo4j is a graph database. In this tool, each node could be a cube position, and edges from one node to another could be a move.