Technology Behind mesibo
This page documents the core technologies used in the mesibo platform and identifies the major components used at each layer — both mesibo and open source. It is intended to provide transparency for technical evaluation, architecture review, security assessment, and software licensing review by customers, including those with internal compliance or procurement requirements, and is not a marketing or feature overview.
Most mesibo components are developed in-house from scratch. Third-party open source libraries are listed alongside their respective licenses.
Lock-Free Core Engine
mesibo is a lock-free architecture written entirely in C++ for high performance and hyperscale scalability. The core system is not built on general-purpose managed runtimes or application frameworks commonly used in other platforms. Instead, it is implemented directly in C++ to ensure deterministic execution, predictable latency, and sustained throughput while handling millions of concurrent connections on standard server hardware.
This design avoids runtime overheads introduced by garbage-collected languages, scripting environments, and heavy application frameworks in the core system. It enables fine-grained control over memory management, concurrency, and I/O behavior, which is essential for maintaining consistent performance under extreme load.
The engine operates entirely without locks in the critical path. No mutexes are used for core message routing, session management, packet processing, or connection handling. This was a foundational architectural constraint from the beginning, not an optimization added later.
Earlier versions of mesibo relied on Intel oneTBB for scalable memory allocation, concurrent queues, and hash tables. Over time, these components were replaced with more sophisticated proprietary lock-free implementations, including highly optimized queueing, hash table, and memory management systems, as described in our paper No Cords Attached (arXiv:2511.09410).
As a result, each connection is maintained with extremely low memory overhead, enabling millions of concurrent connections on commodity bare-metal hardware. Combined, these designs allow mesibo to scale linearly with CPU cores instead of serializing on shared state or synchronization bottlenecks.
- mesibo engine runtime
C++ core — no scripting runtime, no GC, no framework in the critical path
- mesibo lock-free hashtable
Internal design based on "No Cords Attached"; used for all session and routing lookups
- mesibo lock-free queues
Used throughout the message pipeline and I/O dispatch path
- Intel oneTBBApache 2.0
Scalable memory allocator; earlier versions; partially superseded by mesibo implementations
Networking Stack
mesibo uses its own binary protocol optimized for ultra-low-overhead real-time communication. The networking stack is fully non-blocking and built around a custom lock-free epoll event loop designed for massive concurrency.
The engine uses modern Linux kernel features such as SO_REUSEPORT for multi-threaded high-performance socket handling, allowing worker threads to process connections independently with minimal synchronization overhead. Combined with lock-free data structures and CPU-local connection handling, this keeps per-connection overhead extremely low even at massive scale.
All networking is asynchronous. No thread blocks on socket I/O or inter-thread coordination in the critical path.
In addition to the mesibo protocol, mesibo supports HTTP/1.1, HTTP/2, WebSocket, and FastCGI for interoperability with external applications, webhooks, push notification services, APNs, and backend APIs. WebSocket traffic is automatically detected and multiplexed on the same port as native binary connections.
HTTP/2 support is provided through nghttp2, while HTTP/1.1 handling is mesibo's own. Earlier versions used libevent for parts of the asynchronous event layer, though the platform is progressively moving entirely to the native I/O engine.
- mesibo epoll I/O engine
Custom lock-free non-blocking event loop — handles all network I/O
- mesibo HTTP/1.1 server
mesibo implementation — no third-party HTTP framework used
- mesibo WebSocket server
mesibo implementation; multiplexed on the same port as native binary connections
- mesibo FastCGI server
mesibo implementation for backend API processing
- nghttp2MIT
HTTP/2 protocol handling only
- libevent 2.1.12BSD 2-Clause
Async event handling in some areas; being phased out
Security Layer
TLS for all connections is handled by OpenSSL. For on-premise deployments, mesibo includes an integrated ACME client that automatically provisions and renews TLS certificates without requiring external tooling or manual intervention.
End-to-end encryption is implemented entirely in the client SDKs. Encryption keys are generated and stored on the device and never leave it. mesibo servers only transport encrypted payloads as opaque binary data and cannot decrypt message contents.
- mesibo E2EE
End-to-end encryption in client SDKs; keys never reach the server
- mesibo ACME client
Automated certificate provisioning and renewal (Let's Encrypt / RFC 8555)
- mesibo IP filter
Network-level allowlist/blocklist enforced before application logic
- OpenSSLApache 2.0
TLS for all client and server-to-server connections
- ececMIT
Web Push payload encryption per RFC 8291
Database Layer
mesibo uses MariaDB and MySQL as the primary persistent storage layer. The database is used for account management, metadata, configuration, message persistence, and backend integrations, while latency-sensitive routing and session management remain entirely in-memory within the core engine.
The database layer is designed around asynchronous operation and minimal contention, with the messaging engine avoiding synchronous database access in the critical path wherever possible. mesibo also includes its own native MySQL/MariaDB client implementation optimized for non-blocking operation and tight integration with the internal event engine.
- mesibo database layer
mesibo non-blocking abstraction with connection pooling and query management
- MariaDB Connector/CLGPL v2.1
MySQL-compatible C connector; chosen over libmysqlclient to avoid GPL licensing
Media & Image Processing
mesibo processes images server-side for profile pictures, thumbnails, and rich message previews. This uses a stack of established open source libraries rather than a mesibo implementation — the problem is well-solved and the risk/benefit of building alternatives is unfavorable.
libgd provides image creation and transformation. libpng and libjpeg-turbo handle their respective formats. FreeType is used for font rendering, under its permissive FreeType License (not GPL).
- mesibo OpenGraph
mesibo Open Graph metadata extraction for URL previews in rich messages
- libgdBSD-style
Image creation, resizing, and drawing
- libpng 1.6libpng License
PNG encode/decode
- libjpeg-turbo 2.1BSD
JPEG encode/decode; SIMD-accelerated
- FreeTypeFTL (permissive)
Font rendering; used under the FreeType License, not GPL
Client-Side APIs
Most mesibo client SDKs are built on top of a common high-performance C++ runtime and API layer shared across platforms. Native platform bindings are then provided for Android (Java/Kotlin), iOS (Swift/Objective-C), Python, and direct C++ integration. JavaScript is the only major SDK that does not use the shared native runtime.
This architecture keeps most protocol handling, networking, encryption, synchronization, and messaging logic common across platforms while preserving native APIs and platform integration layers. As a result, API signatures remain highly consistent across platforms, and new features, protocol updates, performance improvements, and bug fixes propagate uniformly with minimal platform-specific divergence or maintenance overhead.
The client-side storage layer uses SQLite for local persistence, caching, and offline synchronization instead of MySQL/MariaDB used on the server side.
- mesibo C++ runtime
Shared cross-platform core — protocol handling, networking, encryption, sync, and messaging logic
- OpenSSLApache 2.0
TLS and cryptography
- SQLitePublic Domain
Client-side local persistence, caching, and offline message synchronization
- libgdBSD-style
Image processing
- libpnglibpng License
PNG image support
- libjpeg-turboBSD
JPEG image support
- FreeTypeFTL (permissive)
Font rendering
Open Source Components
The mesibo platform uses a defined set of third-party open source libraries across server and client components. All dependencies are reviewed for licensing compatibility and integrated based on performance, stability, and long-term maintainability requirements.
All third-party components are statically linked unless explicitly noted otherwise. No GPL-licensed or copyleft-licensed components are used in the core platform or distributed binaries.
The list below includes all external open source components used in the system, along with their respective licenses and usage context.
| Library | Purpose | License | Notes |
|---|---|---|---|
| OpenSSL | TLS and cryptography | Apache 2.0 | Server and client |
| MariaDB Connector/C | MySQL/MariaDB database connector | LGPL v2.1 | Used instead of libmysqlclient to avoid GPL licensing |
| SQLite | Client-side local persistence and offline sync | Public Domain | Client SDKs only |
| Intel oneTBB | Intel's library for parallel programming | Apache 2.0 | Earlier versions; partially superseded by mesibo implementations |
| nghttp2 | HTTP/2 protocol | MIT | HTTP/1.1 is a mesibo implementation |
| ecec | HTTP Encrypted Content-Encoding | MIT | |
| libgd | Image creation and processing | BSD-style | |
| libpng | PNG image support | libpng License | |
| libjpeg-turbo | JPEG image support | BSD | |
| FreeType | Font rendering | FTL (permissive) | Used under the FreeType License, not GPL |
| libevent | Async event notification | BSD 2-Clause | Being phased out in favour of the native mesibo I/O engine |