【问题标题】:Migrating from Apache Cassandra 2.2 to Oracle Coherence Oracle 12从 Apache Cassandra 2.2 迁移到 Oracle Coherence Oracle 12
【发布时间】:2015-12-08 13:58:59
【问题描述】:

我正在为使用 Apache Cassandra 2.2 到 Oracle Coherence 12 和 Oracle 12 后端的基于 Java 的项目寻找迁移路径。 现有应用程序使用 CQL 与 3 节点 Cassandra 集群进行交互。 在其他地方,我们特别不使用任何 ORM(例如 Hibernate/JPA),而是使用 JDBC 直接与数据库交互。

是的,Cassandra 是免费的,而 Oracle 解决方案相当昂贵,但这超出了本问题的范围。

欢迎任何技术建议。

【问题讨论】:

    标签: oracle cassandra cassandra-2.0 oracle-coherence cassandra-2.1


    【解决方案1】:

    根据您的用例,您有几个选项。

    1. 如果您使用 SQL 与 Cassandra 进行交互以进行标准请求/响应交互,并且需要将其迁移到使用 Oracle 数据库,这将需要最少的代码更改并且仍然使用标准方法是使用对象关系映射 (ORM) 工具,如 Hibernate/JPA 并使用 Coherence as the L2 cache (我个人喜欢 MyBatis,因为您可以完全控制 SQL 代码。您可以使用此 Coherence integration with MyBatis)。

    2. 1234563更新数据库并使用Oracle Golden Gate Hotcache feature 将应用程序外部数据库的更新推送到 Coherence。您的应用程序将需要更改为直接使用其 Map 接口或使用“类似 SQL”的 Coherence 查询语言 (CQL) 与 Coherence 交互。这种方法还有一个额外的优势,即能够支持您可能拥有的任何异步用例,因为 Coherence API 支持侦听缓存更改(使用 MapListeners),类似于 Cassandra 的 executeAsync。

    我希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-13
      • 2011-08-25
      • 1970-01-01
      • 2018-07-25
      • 2010-11-30
      • 1970-01-01
      • 1970-01-01
      • 2015-04-17
      相关资源
      最近更新 更多