分布式 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://codercto.com/soft/d/18451.html

Data Structures and Algorithms with JavaScript

Data Structures and Algorithms with JavaScript

Michael McMillan / O'Reilly Media / 2014-2-22 / USD 28.51

If you’re using JavaScript on the server-side, you need to implement classic data structures that conventional object-oriented programs (such as C# and Java) provide. This practical book shows you how......一起来看看 《Data Structures and Algorithms with JavaScript》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

SHA 加密
SHA 加密

SHA 加密工具