Attila Horvath

807 Flips | 1 Magazine | 1 Following | 101 Followers | @AttilaHorva2014 | Keep up with Attila Horvath on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Attila Horvath”

How to deal with dirty side effects in your pure functional JavaScript

So, you’ve begun to dabble in functional programming. It won’t be long before you come across the concept of <i>pure functions</i>. And, as you go on, you …

How To Develop a Node.js TCP Server Application using PM2 and Nginx on Ubuntu 16.04

<i>The author selected OSMI to receive a donation as part of the Write for DOnations program.</i>IntroductionNode.js is a popular open-source JavaScript …

Node.js Best Practices

README.md<p><b>Follow us on Twitter!</b> <b>@nodepractices</b><p>Welcome! 3 Things You Ought To Know First:<p><b>1. When you read here, you in fact read dozens of the best</b> …

Introducing Docker Secrets Management

Containers are changing how we view apps and infrastructure. Whether the code inside containers is big or small, container architecture introduces a …

MongoDB Write Concern: 3 Must-Know Caveats

‘Write concern’ in MongoDB describes the level of write acknowledgment you can expect from it. It’s a rather important setting to remember in your …

Operationalizing Node.js for Server Side Rendering

As Airbnb builds more of its Frontend around Server Side Rendering, we took a look at how to optimize our server configurations to support it.<p>At …

Stock Price Notifications with Mongoose and MongoDB Change Streams

MongoDB change streams are a powerful mechanism for splitting work between different processes. In other words, change streams are a compelling …

Keeping Node.js Fast: Tools, Techniques, And Tips For Making High-Performance Node.js Servers

Keeping Node.js Fast: Tools, Techniques, And Tips For Making High-Performance Node.js ServersKeeping Node.js Fast: Tools, Techniques, And Tips For …

Web Design

Using MongoDB as a realtime database with change streams

Getting data changes from a database in realtime is not as easy as you may think.<p>In a previous tutorial, I mentioned there are three main approaches …

Know the operations currently executing on your MongoDB server inside out

Introduction<p>Have you ever been asked — <i>‘Why is your MongoDB database server running slow?’</i>. If you did wonder, <i>‘Which operations are making it slow?’</i> …

Redis vs. Memcached: In-Memory Data Storage Systems

Redis and Memcached are both in-memory data storage systems. Memcached is a high-performance distributed memory cache service, and Redis is an …

Sending Web Push Notifications from Node.js

Using service workers, you can send push notifications to Chrome straight from your Node.js app. The excellent web-push npm module lets you send push …

JavaScript

Reddie: Real-time chat with Redis Streams

This article is an exploration of as-yet-unreleased Redis Streams which unlock some powerful use cases. We’ll leverage Streams to build an end to end …

JavaScript

How to Create Highly Available MongoDB Databases with Replica Sets

One of the most common ways to create a high-availability MongoDB database, such as ApsaraDB for MongoDB, is by using replica sets. A MongoDB replica …

Node.js can HTTP/2 push!

<i>This article was co-written by</i> <i>Matteo Collina</i><i>, a Technical Steering Committee member of Node.js and Principal Architect</i> <i>@nearForm</i><i>, and</i> <i>Jinwoo Lee</i><i>, a</i> …

Reading streams via async iteration in Node.js

Node.js 10 was released on April 24, 2018. This version provides experimental support for asynchronously iterating over readable streams. This blog …

Docker Commands Cheat Sheet

Given our affinity for Docker, we wanted to pass along some tips and best practices for using it at the command-line. To do that we’ve created a …

DevOps

Large Scale NoSQL Database Migration Under Fire

The following post describes how we migrated a large NoSql database from one vendor to another in production without any downtime or data loss. The …

Health Checks and Graceful Shutdown for Node.js Applications

Your application is serving requests constantly for your users. You and your team want to ship features and fixes as soon as they are ready, so you …

DevOps

Properly measuring HTTP request time with node.js

When your backend code is calling external APIs you may want to measure particular request time to identify bottlenecks.<p>The most straight forward, …

JavaScript

An Exhaustive Guide to Writing Dockerfiles for Node.js Web Apps

TL;DR<p>This post is filled with examples ranging from a simple Dockerfile to multistage production builds for Node.js web apps. Here’s a quick summary …

Improving MongoDB Performance with Automatically Generated Index Suggestions

Beyond good data modeling, there are a few processes that teams responsible for optimizing query performance can leverage: looking for COLLSCANS in …

How to Find Unused Indexes in MongoDB?

MongoDB

Building a Full-Text Search App Using Docker and Elasticsearch

<i>How does Wikipedia sort though 5+ million articles to find the most relevant one for your research?</i><p><i>How does Facebook find the friend who you're</i> …

An Insight into MongoDB Sharding Chunk Splitting and Migration

An Introduction to Sharding<p>Sharding is a method of data distribution across multiple machines. MongoDB uses sharding to support deployments with very …

Build Super Fast Apps in Node.js using Redis Cache

When trying to optimise our applications, one of the first things we look to is caching. Caching involves storing data in a high performance store …

Fishing for graphs in a Hadoop data lake

<i>Exploring many small regions of a graph with low latency using specialized graph and multi-model databases.</i>Graphs in the sense of linked data with …

Docker vs. Kubernetes vs. Apache Mesos: Why What You Think You Know is Probably Wrong

There are countless articles, discussions, and lots of social chatter comparing Docker, Kubernetes, and Mesos. If you listen to the …

Networking for Docker Containers (a Primer) Part I

This is the first part of a blog series on Networking for Docker containers. The second part covers the basics of Service Discovery, how it has …