Marcus

Marcus is a fullstack JS developer. He’s passionate about the hapi framework for Node.js and loves to build web apps and APIs. Creator of Futureflix and the “learn hapi” learning path.


PM2 — Log Handling

Log handling is an essential key factor in process management. Even though you might not be interested in your logs if everything went smooth. Wait for your first downtime and app failures and you’ll find your fastest way to get proper information about the current application situation within your …

Continue Reading

PM2 — Advanced App Configuration with JSON File

Within this article, we’re going to explore an advanced way to declare and start your applications. If you read the previous article on process management with PM2, you’re familiar with starting applications from command line. PM2 offers another way to start applications: by using an app declaration file …

Continue Reading

PM2 — Cluster Mode and Zero-Downtime Restarts

You’ve already learned how to start, stop, or delete application processes with PM2. There is a major downside having only one app process running: app updates. Deploying updates to your application requires a restart to make the changes available to every visitor. These app restarts will cause a downtime, …

Continue Reading

PM2 — CPU/Memory Monitoring

The previous posts within this series guided you through the topics of process management, how to display currently managed app instance processes and how to restart your applications after system reboots. With PM2, you can also monitor your app processes in respect of CPU and memory utilization. This article will …

Continue Reading

PM2 — Restart Processes After System Reboot

Previously, we published a guide on how to manage processes with PM2. The guide didn’t describe how to restart the PM2 process and managed applications after a system reboot. This is an essential feature for a process manager, because you heavily rely on system and server startup automation. You …

Continue Reading

Retrofit 2 — Simple Error Handling

Two weeks ago, you’ve seen how to log requests and responses for debugging purposes. Requests might not finish successfully and you have to take care of failure situations. Most of the time, you need to manually apply the correct action like showing an error message as user feedback. If …

Continue Reading

Retrofit 2 — Hawk Authentication on Android

Hawk authentication is sort of the underdog in the class of authentication types. It’s been officially around since November 2012 when Eran Hammer (aka hueniverse) published the first version. Since than, the HTTP authentication scheme has evolved to its current version 6.x. This tutorial guides you through the …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.