Click Below to Get the Code

Browse, clone, and build from real-world templates powered by Harper.
News
GitHub Logo

Introducing HarperDB 4.1: Faster, More Efficient, & More Control

HarperDB 4.1 is released with new features: worker threads for HTTP requests, session affinity for routing, improved NoSQL query handling, flexible storage configuration, streamlined logging, and cluster networking.
Product Update
News
Product Update

Introducing HarperDB 4.1: Faster, More Efficient, & More Control

By
Harper
April 17, 2023
By
Harper
April 17, 2023
By
Harper
April 17, 2023
April 17, 2023
HarperDB 4.1 is released with new features: worker threads for HTTP requests, session affinity for routing, improved NoSQL query handling, flexible storage configuration, streamlined logging, and cluster networking.
Harper

HarperDB 4.1 Has Arrived

We are excited to announce the release of HarperDB 4.1, packed with new features and enhancements that further elevate your HarperDB experience. This latest version brings cutting-edge improvements to concurrency handling, routing functionality, NoSQL query performance, storage configuration, logging, cluster networking, and integration with AWS S3 services. Let's delve into the details and explore the real-world value that HarperDB 4.1 delivers:

Click Here for HarperDB 4.1 Release Notes

‍

Update Overview

Concurrency Handling with Worker Thread

HarperDB 4.1 introduces worker threads for handling HTTP requests, providing significant benefits in traffic delegation, load tracking, session affinity, debuggability, and memory footprint reduction. Start HarperDB within your IDE, set breakpoints in your custom functions, and debug them seamlessly. For example, you can now debug custom functions if you're running HarperDB locally and using a modern IDE like WebStorm or VSCode.

‍

Enhanced Routing with Session Affinity

The associated routing functionality in HarperDB 4.1 includes session affinity support. This feature enables consistent routing of users to the same thread, improving caching locality, performance, and fairness. By enabling session affinity with http.sessionAffinity, you can ensure users are consistently served by the same thread, providing a personalized user experience.

‍

Revamped NoSQL Query Handling with Iterators

HarperDB 4.1 improves NoSQL query handling by utilizing iterators consistently. This approach offers an incredibly memory-efficient mechanism for streaming query results directly to the network as they are computed. The benefits are two-fold: faster Time to First Byte (TTFB), allowing data to be sent before the entire query is computed, and reduced memory usage during querying. This upgrade enables seamless and efficient access to query results, even within custom functions. Developers can leverage iterators to iteratively access data from the database without loading the entire result set into memory. Enjoy faster response times and more efficient resource utilization with this transparent upgrade.

‍

Flexible Storage Configuration

HarperDB 4.1 introduces configuration options that allow you to specify the location of database storage files. This flexibility empowers you to distribute database directories and files across different volumes, optimizing disk utilization and storage performance. This feature will align your storage infrastructure with your specific requirements and achieve better scalability, resilience, and efficiency.

‍

Streamlined Logging

Logging in HarperDB has been revamped and consolidated into a single hdb.log file in response to user feedback. This enhancement simplifies log management, making monitoring and analyzing system activity easier. The updated logging system gives you better insights into your HarperDB deployment, enabling you to diagnose issues and troubleshoot more effectively.

‍

Cluster Networking with cluster_network Operation

The new cluster_network operation in HarperDB 4.1 allows you to ping the cluster and retrieve a list of enmeshed nodes. This feature enhances visibility and monitoring within a clustered environment, empowering you to monitor the health and connectivity of your HarperDB cluster effortlessly.

‍

‍

HarperDB 4.1 Has Arrived

We are excited to announce the release of HarperDB 4.1, packed with new features and enhancements that further elevate your HarperDB experience. This latest version brings cutting-edge improvements to concurrency handling, routing functionality, NoSQL query performance, storage configuration, logging, cluster networking, and integration with AWS S3 services. Let's delve into the details and explore the real-world value that HarperDB 4.1 delivers:

Click Here for HarperDB 4.1 Release Notes

‍

Update Overview

Concurrency Handling with Worker Thread

HarperDB 4.1 introduces worker threads for handling HTTP requests, providing significant benefits in traffic delegation, load tracking, session affinity, debuggability, and memory footprint reduction. Start HarperDB within your IDE, set breakpoints in your custom functions, and debug them seamlessly. For example, you can now debug custom functions if you're running HarperDB locally and using a modern IDE like WebStorm or VSCode.

‍

Enhanced Routing with Session Affinity

The associated routing functionality in HarperDB 4.1 includes session affinity support. This feature enables consistent routing of users to the same thread, improving caching locality, performance, and fairness. By enabling session affinity with http.sessionAffinity, you can ensure users are consistently served by the same thread, providing a personalized user experience.

‍

Revamped NoSQL Query Handling with Iterators

HarperDB 4.1 improves NoSQL query handling by utilizing iterators consistently. This approach offers an incredibly memory-efficient mechanism for streaming query results directly to the network as they are computed. The benefits are two-fold: faster Time to First Byte (TTFB), allowing data to be sent before the entire query is computed, and reduced memory usage during querying. This upgrade enables seamless and efficient access to query results, even within custom functions. Developers can leverage iterators to iteratively access data from the database without loading the entire result set into memory. Enjoy faster response times and more efficient resource utilization with this transparent upgrade.

‍

Flexible Storage Configuration

HarperDB 4.1 introduces configuration options that allow you to specify the location of database storage files. This flexibility empowers you to distribute database directories and files across different volumes, optimizing disk utilization and storage performance. This feature will align your storage infrastructure with your specific requirements and achieve better scalability, resilience, and efficiency.

‍

Streamlined Logging

Logging in HarperDB has been revamped and consolidated into a single hdb.log file in response to user feedback. This enhancement simplifies log management, making monitoring and analyzing system activity easier. The updated logging system gives you better insights into your HarperDB deployment, enabling you to diagnose issues and troubleshoot more effectively.

‍

Cluster Networking with cluster_network Operation

The new cluster_network operation in HarperDB 4.1 allows you to ping the cluster and retrieve a list of enmeshed nodes. This feature enhances visibility and monitoring within a clustered environment, empowering you to monitor the health and connectivity of your HarperDB cluster effortlessly.

‍

‍

HarperDB 4.1 is released with new features: worker threads for HTTP requests, session affinity for routing, improved NoSQL query handling, flexible storage configuration, streamlined logging, and cluster networking.

Download

White arrow pointing right
HarperDB 4.1 is released with new features: worker threads for HTTP requests, session affinity for routing, improved NoSQL query handling, flexible storage configuration, streamlined logging, and cluster networking.

Download

White arrow pointing right
HarperDB 4.1 is released with new features: worker threads for HTTP requests, session affinity for routing, improved NoSQL query handling, flexible storage configuration, streamlined logging, and cluster networking.

Download

White arrow pointing right

Explore Recent Resources

Repo
GitHub Logo

Edge AI Ops

This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
JavaScript
Repo
This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
A man with short dark hair, glasses, and a goatee smiles slightly, wearing a black shirt in front of a nature background.
Ivan R. Judson, Ph.D.
Distinguished Solution Architect
Repo

Edge AI Ops

This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
Ivan R. Judson, Ph.D.
Jan 2026
Repo

Edge AI Ops

This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
Ivan R. Judson, Ph.D.
Repo

Edge AI Ops

This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
Ivan R. Judson, Ph.D.
Blog
GitHub Logo

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Cache
Blog
Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Person with short dark hair and moustache, wearing a colorful plaid shirt, smiling outdoors in a forested mountain landscape.
Aleks Haugom
Senior Manager of GTM & Marketing
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Jan 2026
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Tutorial
GitHub Logo

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Harper Learn
Tutorial
Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
A man with short dark hair, glasses, and a goatee smiles slightly, wearing a black shirt in front of a nature background.
Ivan R. Judson, Ph.D.
Distinguished Solution Architect
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.
Jan 2026
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.