Apache Ignite简介

Apache Ignite

一种pache Ignite is a distributed caching platform that allows for transactions. It is capable of scaling to 1000s of nodes, while providing high speed memory accesses.

利用点火的最简单方法是作为键值对。 这使用户可以快速启动并运行。

入门

Ignite可以作为独立应用程序执行,也可以在使用它的应用程序中执行。 作为独立应用程序,必须在服务器模式下执行。 这意味着它将负责存储和提供数据。 但是,当在另一个应用程序中执行时,可以在服务器或客户端模式下启动它。 在客户端模式下,应用程序不负责存储或提供数据。

组态

Ignite在使用前有两个配置步骤。 第一个是定义集群发现机制,第二个是定义缓存。

Ignite Clustering

在Ignite中,群集是共享一个或多个缓存中包含的数据的一组节点。 点燃提供的用于定义群集的一些示例是:

  • 仅本地:群集仅是此单个节点多播服务:动物园管理员

设置Ignite实例的最简单方法是执行以下操作:


Ignite ignite = Ignition.start()

这将使用系统默认值启动您的实例。

现在,有了主要的Cluster实例后,就可以定义缓存了。 再次根据您的使用情况可以调整许多配置值。 一些示例包括:

  • 备用号码管理类型Eviction TypeAnd many others. However the simplest way to define a cache is to just give it a name.
IgniteCache<Long, DTO> cache = ignite.createCache("SAMPLE_CACHE")

全部放在一起

From this point the on the idea of using the cache is dependent on the environment it must be placed into. As a sample I've put together a small Spring Boot Application that utilizes Ignite here. Compared to the code snippets above, there is not a whole lot of additional Ignite setup.

尚未讨论,但仍然很棒

Ignite提供了许多额外的内置功能,值得一提,但上面没有讨论。 其中一些引起我的注意:

  • 分布式计算分布式锁机器学习模块分布式原子引用类型服务网格还有很多。

如您所见,Apache Ignite是一个刷新的缓存系统,提供许多功能。 在评估其他解决方案时,我强烈建议您使用。

参考文献:

github-logo-6a5bca60a4ebf959a6df7f08217acd07ac2bc285164fae041eacb8a148b1bab9.svgbszeliga / ignite-intro

A small playground for Apache Ignite

Ignite Intro

A simple playground of my own making for playing with Apache Ignite.

Descriptions

Intent is to add small sample applications in order to play with and experiment with features within Ignite.

Example 1

A simple Spring Boot rest application that accesses Ignite and gets/sets values within the cache.


from: https://dev.to//bszeliga/introduction-to-apache-ignite-1ilk

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值