lua-resty-logger-socket is a Lua library for Nginx (using ngx_lua) that provides nonblocking remote logging. It buffers log messages in memory and sends them to a remote log server (via TCP, UDP, or Unix domain socket) when the buffer reaches a configurable size or when manually flushed. The library implements efficient buffering with two-level buffers to minimize string concatenation, buffer reuse to prevent memory leaks, retry logic for connection and send failures, periodic flushing, and graceful handling of Nginx worker shutdown to flush remaining logs. It supports SSL with SNI and certificate verification.
bson4jackson is a Java library that adds BSON (Binary JSON) support to the Jackson JSON processor. It enables seamless serialization and deserialization of data in BSON format using Jackson's familiar API, primarily targeting MongoDB integration since BSON is MongoDB's native format. The library follows Jackson's extension patterns through a custom BsonFactory, BsonGenerator for writing, and BsonParser for reading, complemented by specialized serializers/deserializers for BSON-specific types like ObjectId, Timestamp, and Decimal128. The architecture cleanly separates concerns with dedicated components for factory management, stream handling, type conversion, and buffering optimizations.