An open API service indexing awesome lists of open source software.

https://github.com/wesleyone/mapper-file

对象-文件的存储及读取
https://github.com/wesleyone/mapper-file

dledger mappedbytebuffer nio rocketmq

Last synced: about 2 months ago
JSON representation

对象-文件的存储及读取

Awesome Lists containing this project

README

        

[![CI](https://github.com/WesleyOne/mapper-file/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/WesleyOne/mapper-file/actions/workflows/codeql-analysis.yml) [![JDK-1.8+](https://img.shields.io/badge/JDK-1.8+-4EB1BA.svg)](https://docs.oracle.com/javase/8/docs/index.html)

> 本项目参照[RocketMQ](https://github.com/apache/rocketmq) 和[dledger](https://github.com/openmessaging/dledger) 项目的存储模块。

实现以下功能:
- 对象序列化后存储到本地文件
- 从本地文件读取对象

_核心技术是用到`NIO`的`MappedByteBuffer`内存文件映射字节缓冲区,提高文件读写能力。_

操作范式流程简图:
![简图](nio_file.png)