English 中文(简体)
JPA的升级和分组
原标题:Scaling and Clustering JPA

我正在将Java EE的定期申请汇集到jbos7上,该申请将在数据级使用JPA。 我愿提出这一申请,这样它就能够随负荷而扩大。 虽然如何扩大网络等级是很明确的:创建更多的机器,将其抛在负荷平衡器后,但扩大数据级的情况却不那么明显。

我可能把我的数据库(MySQL)集中起来。 在此之前,JPA层没有污染。 理想的情况是,日本邮政管理处将扩大规模,在MySQL的支持下,使用(过滤)记忆。

当我看一看时,围绕《联合行动计划》扩大范围的所有信息似乎都是3-4岁。 人们谈论的是教ache、 me和fin。 我不清楚这是否仍然有效。

一个人能够告诉我 Java EE集群和规模的艺术状况,特别是在数据层。

最佳回答

各种教学战略仍然是扩大人民军/人民解放联盟(你基本上称你最受欢迎的选择)的方法。 我知道,自4至5年以来,这一领域没有发生任何特殊的情况。 提到的另一个选择是JBoss Cache。 因此,JPA/Hibernate的二级Cache在这方面仍然适用。

为什么在这方面没有进展? 我的野心是,首先,在需要高业绩的领域,需要可衡量应用的所有人往往无视人民军和解放党。 通常,人们在春天框架(JDBCT)的助手和交易管理中穿着Q。 然后,可扩展性是这方面的数据库能力问题。

另一个趋势是使用无SQL数据库。 解决办法有:MongoDB、CouchoDB、Casses、Redis等等。 这些通常是谷歌大刀,如关键价值储存(这种储存过于简单化,但这种做法背后的想法越来越少),如果你接受限制,它们的规模就会缩小(有关不再容易管理等等)。

问题回答

There are many solutions, the two main categories of solutions are:

  • scaling the database
  • using a clustered cache to reduce database load

EclipseLink支持数据分立,以便在一套数据库中检索数据。

see: http://java-persistence-performance.blogspot.com/2011/05/data-partitioning-scaling-database.html

你也可以使用MySQL组,

see: http://www.mysql.com/products/cluster/

Oracle TopLink Grid 提供EclipseLink JPA支持与Oracle取得一致,作为分布的切身,

see: http://www.oracle.com/technetwork/middleware/ias/tl-grid-097210.html

EclipseLink scache支持通过切身协调进行分组

see: http://wiki.eclipse.org/EclipseLink/Examples/JPA/CacheCoordination





相关问题
Write-though caching of large data sets in WCF?

We ve got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities. Some of the WCF calls return a large data ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

how to tell clicking "back" to load cache?

I would like for my site when someone clicks "Back" or "Forward" for the server to tell the browser to load the cache instead of reloading the entire page. I ve tested some headers and done research, ...

java plugin cache and dynamic IP host

I m trying to use Amazon S3 and Amazon Cloudfront CDN to deliver the jar files of my applet application. I m seeing several cache misses of my jars by the java plugin. This is a show-stopper for me, ...

Frequently Used metadata Hashmap

Are there any implementations of a static size hashtable that limits the entries to either the most recently or most frequently used metadata? I would prefer not to keep track of this information ...

PHP - Memcache - HTML Caching

I would like to create a caching system that will bypass some mechanisms in order to improve the performance. I have some examples: 1-) I have a dynamic PHP page that is updated every hour. The page ...

Performance of Sql subqueriesfunctions

I am currently working on a particularly complex use-case. Simplifying below :) First, a client record has a many-to-one relationship with a collection of services, that is, a single client may have ...

热门标签