3 Ekim 2021 Pazar

REST API

Giriş
Açıklaması şöyle
Apache Ignite also comes with the REST API, which allows performing basic operations like reading or updating cache entries, executing SQL queries, looking at some of the metrics, etc.

In its current implementation, this API is not really suitable for any performance-sensitive purposes, so I usually avoid using it in production for applications of any type.

However, the REST API might sometimes be useful during development or testing — to quickly check a particular entry value or a SQL query result, for example.
get
Örnek
MyCache isimli tablodaki key değeri 1 olan satırı almak için şöyle yaparız
http://restapi-ignite-grid/ignite?cmd=get&key=1&cacheName=MyCache
Cevap şöyledir. Nesne yok
{"successStatus":0,"affinityNodeId":<someValue>,"sessionToken":null,"error":null,
  "response":null}
size
Örnek
MyCache isimli tablonun büyüklüğünü almak için şöyle yaparız
http://restapi-ignite-grid/ignite?cmd=size&cacheName=MyCache
Cevap şöyledir. İçinde 10 tane satır var
{"successStatus":0,"affinityNodeId":null,"sessionToken":null,"error":null,"response":10}

Hiç yorum yok:

Yorum Gönder

Ignite Transaction Kullanımı

Giriş Bir tablo 3 tane atomicity değerinden birisine sahip olabilir. 1. ATOMIC 2. TRANSACTIONAL 3. TRANSACTIONAL_SNAPSHOT ATOMIC Açıklaması ...