分布式 Java 服务平台 Baratine

码农软件 · 软件分类 · Java开发工具 · 2019-11-07 09:41:38

软件介绍

Baratine 是新的分布式,基于内存的 Java 服务平台,可以构建高性能的 Web 服务,在同一个 JVM 中结合数据和逻辑。在 Baratine 中,数据和服务是一体的,服务拥有它自己的数据:

  1. 数据不属于数据库

  2. 数据不能被其他的进程修改

  3. 数据不是独立于服务的

=> 数据跟服务处于同一个 JVM,同一个线程,同一个类实例。

Baratine 远远不止于 NoSQL,Baratine 是 NoDB.。 

Baratine 包含的组件:

  • Inbox: ring-buffer queue

  • Journal

  • Distributed SQL-compatible database

  • BFS (Baratine File System): distributed file system

  • Bartender: cloud manager with heartbeats

  • Horizontal scaling with automatic partitioning

  • Web server

POJO 类:

@ResourceService("/counter/{_id}")
public class CounterService
{
  private long _id;
  private long _count;

  public long get()
  {
    return _count;
  }

  @Modify
  public long incrementAndGet()
  {
    return ++_count;
  }

  @Modify
  public long decrementAndGet()
  {
    return --_count;
  }

  @Modify
  public long addAndGet(long value)
  {
    _count += value;

    return _count;
  }
}



本文地址:https://www.codercto.com/soft/d/18451.html

Ordering Disorder

Ordering Disorder

Khoi Vinh / New Riders Press / 2010-12-03 / USD 29.99

The grid has long been an invaluable tool for creating order out of chaos for designers of all kinds—from city planners to architects to typesetters and graphic artists. In recent years, web designers......一起来看看 《Ordering Disorder》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具