from Golang I/O website

in this short story, I will try to explain how to implement a setInterval() javascript method on Go, if you are not familiar with it, it's just a method to repeat calling a function at every given time interval.

Golang has a package called time very helpful and provides us with so many utils related to the time, we will use time.NewTicker contains a channel C that will send a tick at every specific interval time we can declare as an argument time.NewTicker(interval)

to keep our setInterval function calling the handler function we need an infinite loop running in…

introduction to Kubernetes containers from source

in this article, I will try to explain how to build a very simple web Chat application using Expressjs as a Nodejs HTTP server, SocketIO for real-time communication and Redis adapter to broadcast messages between all the GKE Kubernetes Nodes’s clients.

The entire project source code is on Github 🎉, fork it!

For those who are not so familiar with Kubernetes or are just giving their first steps into this technology, let's understand what does it stands for

Google Kubernetes Engine (GKE) provides a managed environment for deploying, managing, and scaling your containerized applications using Google infrastructure. …

Photo by David Nitschke on Unsplash

the idea is using a lambda function to resize and inject a text Watermark into any photo you upload to an S3 bucket.

from AWS Documentation, AWS Lambda integrates with other AWS services to invoke functions with an event parameter contains a set of useful data about the function’s caller. in our case, this AWS service is an S3 bucket which triggers a set of events when some kind of operation performed on it, for example, a “putObeject” event fired when a new file added to the bucket.

by default, the lambda function container doesn't contain any custom fonts…

Photo by Spencer on Unsplash

when I was working in a small project recently using an Arduino UNO (atmega328p) to control various relays with a set of push-buttons I was wonder about how can I use the minimum number of pins to achieve that.

firebase Auth to secure Netlify Lambda functions

so you are using Netlify to deploy your amazing website, or you are thinking about moving your website to the next generation of the JAMstack websites. that means your backend seemingly be a Serverless, living in the Netlify functions which are powered by AWS Lambda and need to be protected and accessible only to your website’s users. well, in this case, you can give your Firebase users access and use Firebase admin in Netlify function to verify the IdToken for every request.

IdToken is a jwt claims generated on Firebase Cloud

How does it work?

when the Firebase client app communicates with a custom…

considering repository on GitHub there are a lot of events may happen to that repo such as push event or merge code into the master branch, these example of events and any event can trigger an automated workflow, and workflow can up one or more containers (instances) for you in the Cloud then provide a set of steps or instructions for the container to do something useful for you.

GitHub logs the entire progress of each step and makes it very clear if something failed during Action progress.

Writing Actions

instead of writing your own steps from scratch you use ones implemented…

publish Gatsby plugin to NPM

npm is a critical part of the JavaScript world. has hundreds of thousands of open source developers and maintainers.

in this project gatsby-source-mycustomers, we will create a simple gatsby-source plugin to retrieve a fake users data from API and see how to use Graphql to obtain this data, I have uploaded the entire example to Github you can clone it and do your modifications.

git clone

Project plan

Axios , Redux and React

in this story, I will show you how to add Axios HTTP client as an extra parameter to your redux async actions, this method will help you to organize your workflow and reuse one configured (API baseUrl, Authorization token in headers ) Axios instance in all your API calls.


is a Promise based HTTP client for Javascript, similar to XML-HttpRequest (XHR) Objects to interact with servers and retrieve data from URL without having to do full page refresh and this is why it fits in the React components philosophy very well and it is used heavily recently.

Introduction to React Hooks and Redux

after the Reactjs…

qualities of bad managers

a quite popular saying that goes: “Employees don’t quit their jobs, they quit their managers.” And there’s a lot of truth in that saying.

One problem in tech is high-level managers who don’t have a clue about technical complexities but are trying to measure the impact of infrastructure projects and failing to understand their value proposition.

This is a huge problem across the industry, and what’s worse is that it ends up in significant amounts of work/effort on the part of the engineering groups to make up the difference between what *should* have been done and what was actually done.

control firebase database from Netlify functions

Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. it covers the essentials so you can monetize your business and focus on your users.

Recently Firebase launched Cloud Functions–a way to run your code on their servers but if you just want to start a small business with no budget it will disappoint you that firebase functions The Spark plan (free plan), allows outbound network requests only to Google-owned services such as (Maps, Gmail…), so your amazing new Nodejs app cant access the public internet to do some important APIs call to…

Safi eddine .B

Software engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store