# fourinone **Repository Path**: dhd_index/fourinone ## Basic Information - **Project Name**: fourinone - **Description**: Fourinone (Chinese name "四不像") provides a 4-in-1 distributed framework and easy-to-use programming api to use CPU, memory, hard drives of multi-machine together, in order to gain a powerful computing power to solve complex problems . The Fourinone framework provides a series of parallel computing model (include Migrant Workers / Contractors / Job Agency/ Warehouse concepts) to take advantage of the computing power of multi-machine multi-core cpu; provide a complete distributed cache and a small cache to take advantage of multi-machine memory capacity; provides the operation of remote files in the same way as local files (access, parallel read and write, split, exclusive, copying, parsing, transaction, etc.) for the use of hard disk storage capacity of multi-machine; due to the multi-computer physically independent, Fourinone framework also provides a complete Distributed collaborative and locks, as well as simplify the MQ function for multi-machine collaboration and communication. In other words, fourinone integrates Hadoop, Zookeeper, Memcache, MQ four major functions in a simple jar! It is only 150k size and without any dependence and very convenient to embed your system for use. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 37 - **Created**: 2016-01-11 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Fourinone-4.15.08(四不像)为最新版本 4.15.08升级版主要增强了CoolHash以下功能: 1、为了方便在Tomcat等多线程服务器内调用,开通了CoolHash的多线程客户端支持(4.05版由于jvm安全隔离性考虑只支持多进程客户端),提升数据库引擎对单条数据读写的高并发低延迟处理能力,做到1000-5000级别多线程并发读写几毫秒完成(网络访问,单server,8核8g内存普通配置)。详见自带Demo:ThreadClient.java 2、提供了CoolHash所有数据库操作的异步支持,灵活利用异步操作可以实现很多数据库常用功能,如多种备份策略的实现:同步备份、异步备份忽略成功、异步可靠备份,异步可靠备份即能提升性能又能确保成功,分库分表后,利用异步操作可同时查询多个CoolHash引擎数据源,将查询结果进行合并,等等。详见自带Demo:AsynClient.java 3、提供同一个CoolHash客户端同时可操作多个CoolHash Server,比如用于收到用户请求根据数据库业务分表路由,但是需要保持客户端和所有服务端配置文件的一致性。 4、增强了key模糊匹配能力,4.05版可以使用*模糊查询key,比如user.*.age查询所有人的年纪,4.15新增可以给*加上前后缀,如user.a*.age查找a开头的人的年纪,user.*z.age查找z结尾的,user.a*z.age查找a开头z结尾的。key模糊匹配和value的Filter过滤一起使用,可以实现类似sql语句的seclect * from where的查询效果。很多kv持久化数据库在数据容量超出了内存大小后性能会急剧降低,但是CoolHash此时的模糊查询性能仍然表现良好,还是会维持着和内存检索接近的速度,这是因为CoolHash带有的冷热切换特性,会将常访问的数据调整到内存中,这样即能保证性能又能极大节省硬件资源,提升单机存储容量。 4.15.08版本同时提供jdk "1.7.0_79"编译下"fourinone.jar"包和"jdk1.8.0_45"编译下"fourinone-jdk8.jar"包。