I’m Matthieu and I am a software engineer who loves to learn and hack tech things.
How to build an elegant and simple REST API Client using JS Proxy
Photo by Ignacio Amenábar on Unsplash Based on @DavidWells shared JS Proxy tweets and GitHub gist. Last week, I discovered an elegant way to create simple javascript REST API clients using Proxy. ...
🦊 🐳 Publish your docker images in a private registry with GitLab Container Registry
It may happen that you need a private registry to publish your docker images (business projects, dev docker images, etc…). There are several solutions to do that : take a docker hub subscription which allows you to create private projects create and maintain your own registry (ex: harbor) use GitLab Registry The docker hub solution may seem to be the right one for a company with large projects, but for simple needs (ex: management of development docker images) or for side projects, the Gitlab Registry solution is in my opinion the simplest. ...
🐳 doco - A shell alias for docker compose
During the last 6 years that I had to use docker, I quickly added a doco alias for docker-compose (then docker compose) in my terminal. ...
⚡️ Implement events streaming in Go with NATS JetStream
What is JetStream ? JetStream is the NATS company streaming solution. The JetStream server is built-in to nats-server and can be enabled with nats command options. You can find more informations about JetStream on the official documentation : https://docs.nats.io/nats-concepts/jetstream. Events streaming example To understand how to do events streaming with JetStream, we will use a fake Twitter app throughout the article. The two application endpoints that will interest us here are: POST /tweets POST /tweets/:id/likes The first one will create a new tweet and the second one permit to like a tweet. As an event streaming application, the POST /tweets will produce tweet_created events and the POST /tweets/:id/likes will produce tweet_liked events. ...
🖥 Monitoring a Node.JS Typescript application with Prometheus and Grafana
Monitoring consists of observing metrics of your application that will allow you to know its health condition. There are different observable metrics: resources consumption (CPU, memory, IO, …) network traffic business metrics (endpoint response time, requests errors, …) This post will be dedicated to setting up monitoring on a Node.JS application written in Typescript. We will set up the business metrics exposure in our application and then we will exploit them with Prometheus and Grafana. ...