DEV Community

Benson Macharia for AWS Community Builders

Posted on • Originally published at


AWS CloudWatch Logging for Golang Microservices on EKS with Logrus and Fluent bit

With the API-first approach of building software products becoming prominent and APIs now making up the most common communication channel for internet traffic, API security becomes paramount.
API logging and monitoring is a key component in securing APIs, amongst others that include discovery, vulnerability management and compliance. APIs should have an inbuilt mechanism to collect access and transaction activities which can aid in their monitoring to identify potentially malicious activity.

API Logging on AWS EKS
Golang being one of the most popular frameworks for developing APIs due to its performance and support for concurrency, I have created a guide to aid developers collect API logs through the Go LogRus library and forward such to AWS CloudWatch from a microservice deployed in AWS EKS.

Check it here

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.