Skip to main content

4 posts tagged with "Web Development"

Web development concepts, frameworks, and browser technologies.

View All Tags

Why Node.js is Called Single-Threaded and How It Serves Millions of Requests

· 4 min read
PSVNL Sai Kumar
Senior Software Development Engineer, Oracle

Introduction

Node.js is often described as a single-threaded environment, yet it is capable of handling millions of concurrent requests. This document explains the reasons behind this design and how Node.js achieves high concurrency through its architecture. Additionally, it provides a detailed overview of the event loop and a full example to illustrate these concepts.

Creating and Using WebSocket Connections in Go

· 4 min read
PSVNL Sai Kumar
Senior Software Development Engineer, Oracle

Overview

WebSockets provide a persistent, full-duplex connection between a client and server, enabling real-time communication without repeated HTTP handshakes. In Go, the github.com/gorilla/websocket package is the standard way to work with WebSockets. This guide walks through building a working WebSocket server and client, handling multiple connections, and keeping connections alive.