Distributed Java service platform baratine

dalongrong 2021-07-27 23:33:38
distributed java service platform baratine


Distributed Java The service platform Baratine

Baratine Is the new distributed , Memory based Java The service platform , Can build high-performance Web service , In the same JVM Combine data and logic . stay Baratine in , Data and services are one , The service has its own data :

  1. The data does not belong to the database

  2. Data cannot be modified by other processes  

  3. Data is not service independent  

=> Data and service are in the same JVM, Same thread , The same class instance .

Baratine Far more than NoSQL,Baratine yes  NoDB.. 

Baratine Components included :

  • 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 class :

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@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;
   }
}

 

 
 
·
版权声明
本文为[dalongrong]所创,转载请带上原文链接,感谢
https://javamana.com/2021/07/20210718101544441R.html

  1. redis 监控的一些构思
  2. Some ideas of redis monitoring
  3. Spring中获取request的几种方法,及其线程安全性分析
  4. Several methods of getting request in spring and its thread security analysis
  5. 20分钟带你掌握JavaScript Promise和 Async/Await
  6. 20 minutes with async and async
  7. Mybatis - introduction, simple entry program
  8. Java Concurrent Programming: concurrent HashMap
  9. Mybatis: one to one association query
  10. Java IO
  11. Object oriented [day07]: review of knowledge points (11)
  12. Chapter 2 spring
  13. Process of building minicube in local k8s environment
  14. Interpretation of jQuery source code
  15. Making web full screen effect with jquery
  16. Java 7 exception handling new features - address suppressed () method
  17. Spring 4 uses websocket
  18. Using openldap to answer questions and using java to complete LDAP authentication
  19. Implementation of MySQL high availability cluster with corosync + pacemaker and DRBD
  20. Java production of a simple tank war
  21. Design pattern day02
  22. Hadoop pseudo Distributed installation and running test example
  23. Java Concurrent Programming: callable, future and futuretask
  24. Understanding the three characteristics of Java encapsulation
  25. Understanding closure of JavaScript
  26. Java set excel worksheet to read only
  27. Java barcode generation technology barcode4j
  28. Use springboot + MySQL + JPA to add, delete, change, query and page the database
  29. Distributed services framework Dubbo / dubbox getting started example
  30. Zookeeper notes (1) installation, deployment and hello world
  31. Oracle database trigger Usage Summary
  32. MySQL master replication with slave server