简体   繁体   English

带有嵌入式数据库的Java EE

[英]Java EE with embedded database

I have several applications/microservices running on different application servers. 我在不同的应用程序服务器上运行了几个应用程序/微服务。 I want to persist some data in each of the applications for statistical/monitoring purposes. 我想在每个应用程序中保留一些数据,以进行统计/监视。 The data-format is very simple and there will probably only be a couple of tables in each database. 数据格式非常简单,每个数据库中可能只有几个表。 The performance has to be very fast with minimal overhead. 性能必须非常快且开销最少。

All the applications are running on Java EE 6 servers. 所有应用程序都在Java EE 6服务器上运行。 I'm therefore looking for a database that can be embedded on each application server with high performance and minimal configuration. 因此,我正在寻找一种可以以高性能和最少配置嵌入到每个应用程序服务器中的数据库。

Requirements: 要求:

  • Easy to embed on a Java EE application server 易于嵌入到Java EE应用程序服务器中
  • High performance and minimal overhead/footprint 高性能和最小的开销/占用空间
  • Minimal configuration and maintenance 最少的配置和维护
  • NoSQL is preferable 最好使用NoSQL
  • Clean Java API 干净的Java API
  • Possible to do SQL-like queries on each database and across the different databases 可以在每个数据库上以及跨不同数据库执行类似SQL的查询
  • Time-to-live on insert statements 插入语句的生存时间
  • Free 自由
  • Preferable Open Source 首选开源

Does anyone have experience with similar solutions or suggestions for technologies suitable for the use case? 是否有人对适用于用例的技术有类似解决方案或建议的经验?

Cassandra looks very interesting, but it's hard to find any documentation on how to embed it easily in a Java EE container. Cassandra看起来非常有趣,但是很难找到任何有关如何轻松将其嵌入Java EE容器的文档。

H2应该可以满足您的几乎所有需求(NoSQL首选项除外) http://www.h2database.com/html/main.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM