[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,117 +2,178 @@
|
||||
id: wiki-2026-0508-apache-ignite
|
||||
title: Apache Ignite
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [P-REINFORCE-WIKI-46783FB6]
|
||||
aliases: [Ignite, In-memory data grid, GridGain]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.95
|
||||
tags: [apache-ignite, hazelcast, space-based-architecture-pattern, distributed-systems, in-memory-data-grids-(imdg), devops-environment]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [in-memory, data-grid, distributed-cache, sql, compute-grid]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-02
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: unspecified
|
||||
framework: unspecified
|
||||
language: java
|
||||
framework: Apache Ignite 2.16
|
||||
---
|
||||
|
||||
# [[Apache Ignite]]
|
||||
# Apache Ignite
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
Apache Ignite는 공간 기반 아키텍처(Space-Based Architecture) 패턴을 구현할 때 활용되는 분산 시스템 도구 중 하나이다 [1]. 이 도구를 다루기 위해서는 분산 시스템에 대한 전문 지식이 필수적으로 요구된다 [1]. 소스에 관련 정보가 부족하여 더 이상의 자세한 정의를 제공하기 어렵다.
|
||||
## 매 한 줄
|
||||
> **"매 distributed in-memory data grid + compute grid + ANSI SQL"**. 매 GridGain (2007) → Apache Ignite (2014, donated). 매 2026 modern stack 은 Ignite 2.16 (GA mid-2025) / Ignite 3.x (preview, 매 new architecture: RAFT-based, ANSI SQL-first, 매 GridGain 9 commercial). 매 Hazelcast / Redis 의 alternative — 매 SQL + ACID transactions 의 differentiator.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
소스에 관련 정보가 부족합니다.
|
||||
## 매 핵심
|
||||
|
||||
(Apache Ignite 자체에 대한 상세한 작동 원리나 세부 구조는 제공된 소스에 포함되어 있지 않으며, 오직 '공간 기반 아키텍처(Space-Based Architecture)'의 단점(Cons)을 설명하는 과정에서 분산 시스템 도구의 예시로 단 한 차례 짧게 언급되어 있습니다 [1].)
|
||||
### 매 features
|
||||
- **In-memory key-value cache** — partitioned (sharded) or replicated.
|
||||
- **Distributed ANSI-99 SQL** — collocated joins, indexes, JDBC/ODBC.
|
||||
- **ACID transactions** — pessimistic / optimistic, distributed two-phase commit.
|
||||
- **Compute grid** — send code to data (Java/.NET/C++).
|
||||
- **Service grid** — deploy stateful services across cluster.
|
||||
- **Native persistence** — durable on-disk (since 2.1, 2017).
|
||||
- **Streaming** — continuous queries, data streamer.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
Apache Ignite를 활용하여 시스템을 구축할 경우, 해당 도구와 분산 시스템 전반에 대한 고도의 전문 지식을 갖춘 인력이 필요하다는 점이 주요 제약 사항이다 [1].
|
||||
그 외 구체적인 부작용이나 최적화 반대급부에 대해서는 소스에 관련 정보가 부족합니다.
|
||||
### 매 architecture
|
||||
- **Topology**: server nodes + client/thin clients.
|
||||
- **Affinity**: rendezvous hashing, partition-to-node assignment.
|
||||
- **Backup**: synchronous/async backups per cache (RF=N).
|
||||
- **Discovery**: TcpDiscoverySpi (multicast / static / Kubernetes / ZooKeeper).
|
||||
- **Communication**: TcpCommunicationSpi.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
### Related Concepts
|
||||
### 매 응용
|
||||
1. **Hot cache layer** — in front of Postgres/Oracle, sub-ms reads.
|
||||
2. **Distributed SQL** — operational analytics across shards.
|
||||
3. **Compute grid** — financial risk calc, ML feature scoring at data.
|
||||
4. **Session storage** — JCache (JSR-107) compliant.
|
||||
|
||||
#### [구현/활용 도구]
|
||||
- [[Hazelcast]]
|
||||
- 연결 이유: Apache Ignite와 함께 공간 기반 아키텍처를 구현하기 위한 분산 시스템 도구의 예시로 나란히 언급된다 [1].
|
||||
- 이 개념을 통해 더 깊게 이해할 수 있는 부분: 공간 기반 아키텍처 환경에서 메모리 내 데이터를 관리하는 데 사용되는 대체 도구의 종류를 알 수 있다 [1].
|
||||
## 💻 패턴
|
||||
|
||||
#### [아키텍처/기반 기술]
|
||||
- [[Space-Based Architecture Pattern]]
|
||||
- 연결 이유: Apache Ignite가 주로 활용되는 대상 아키텍처 패턴이다 [1].
|
||||
- 이 개념을 통해 더 깊게 이해할 수 있는 부분: 데이터베이스 중심 설계의 병목 현상을 줄이고, 분산된 인메모리 데이터 그리드(IMDG)를 활용하여 높은 확장성과 실시간 처리 성능을 달성하는 구조적 원리를 이해할 수 있다 [2, 3].
|
||||
### Cache config (Java)
|
||||
```java
|
||||
IgniteConfiguration cfg = new IgniteConfiguration();
|
||||
CacheConfiguration<Long, Order> cc = new CacheConfiguration<>("orders");
|
||||
cc.setCacheMode(CacheMode.PARTITIONED);
|
||||
cc.setBackups(1);
|
||||
cc.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
|
||||
cc.setWriteSynchronizationMode(CacheWriteSynchronizationMode.PRIMARY_SYNC);
|
||||
cc.setIndexedTypes(Long.class, Order.class);
|
||||
cfg.setCacheConfiguration(cc);
|
||||
|
||||
### Deeper Research Questions
|
||||
- 분산 시스템 환경에서 Apache Ignite를 활용할 때 발생할 수 있는 데이터 복제 지연(data replication delays)과 일시적 데이터 불일치 문제를 어떻게 해결하거나 최소화할 수 있는가? [1]
|
||||
- 공간 기반 아키텍처를 구현함에 있어 Apache Ignite와 Hazelcast의 기술적 차이점과 각각의 최적 적용 사례는 무엇인가? [1]
|
||||
- 고부하 시나리오(high-load scenarios)를 시뮬레이션하기 위한 비용과 시간을 절감하면서 Apache Ignite 기반 시스템을 효과적으로 테스트하는 방법론은 무엇인가? [1]
|
||||
- 소스에 관련 정보가 부족합니다.
|
||||
- 소스에 관련 정보가 부족합니다.
|
||||
|
||||
### Practical Application Contexts
|
||||
- **Implementation:** 실시간 데이터 처리(예: 주식 거래, 사기 탐지)나 동시성이 높은 시스템(예: 전자상거래 판매, 경매 플랫폼)을 구현할 때 트래픽 급증을 처리하기 위한 분산 시스템 도구로 채택될 수 있다 [1, 3].
|
||||
- **System Design:** 데이터베이스 호출로 인한 지연 시간을 줄이고 선형적 확장성(near-linear scalability)을 보장하기 위해 공간 기반 아키텍처를 설계할 때 핵심 도구로 고려된다 [1, 2].
|
||||
- **Operation / Maintenance:** 도구를 운영하고 유지보수하기 위해서는 분산 시스템 아키텍처에 대한 이해도와 전문성을 갖춘 엔지니어링 팀이 필수적으로 뒷받침되어야 한다 [1].
|
||||
- **Learning Path:** 소스에 관련 정보가 부족합니다.
|
||||
- **My Project Relevance:** 소스에 관련 정보가 부족합니다.
|
||||
|
||||
### Adjacent Topics
|
||||
- [[Distributed Systems]]
|
||||
- 확장 방향: Apache Ignite를 올바르게 활용하기 위한 근본적인 기반 학문으로, 분산 환경에서의 상태 관리, 네트워크 통신, 장애 허용성(fault tolerance) 등을 깊이 있게 연구할 수 있다 [1].
|
||||
- [[In-Memory Data Grids (IMDG)]]
|
||||
- 확장 방향: 디스크가 아닌 여러 대의 서버 RAM에 데이터를 분산 저장하여 방대한 데이터에 초고속으로 접근하게 해주는 가상화된 데이터 그리드 기술의 원리를 파악할 수 있다 [2].
|
||||
|
||||
---
|
||||
*Last updated: 2026-05-02*
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
|
||||
## 💻 코드 패턴 (Code Patterns)
|
||||
|
||||
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
|
||||
|
||||
```text
|
||||
# TODO
|
||||
Ignite ignite = Ignition.start(cfg);
|
||||
IgniteCache<Long, Order> orders = ignite.cache("orders");
|
||||
orders.put(1L, new Order(...));
|
||||
```
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### Distributed SQL
|
||||
```java
|
||||
SqlFieldsQuery q = new SqlFieldsQuery(
|
||||
"SELECT o.id, c.name FROM \"orders\".Order o " +
|
||||
"JOIN \"customers\".Customer c ON o.customerId = c.id " +
|
||||
"WHERE o.status = ?")
|
||||
.setArgs("paid");
|
||||
try (var cur = orders.query(q)) {
|
||||
for (List<?> row : cur) System.out.println(row);
|
||||
}
|
||||
```
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### Affinity collocation (cross-cache JOIN performance)
|
||||
```java
|
||||
@QuerySqlField(index = true)
|
||||
private Long customerId;
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
// Affinity key — rows with same customerId on same node
|
||||
@AffinityKeyMapped
|
||||
private Long customerId;
|
||||
// Now JOIN orders ↔ customers stays node-local
|
||||
```
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
### Transaction (pessimistic, repeatable read)
|
||||
```java
|
||||
try (Transaction tx = ignite.transactions().txStart(
|
||||
TransactionConcurrency.PESSIMISTIC,
|
||||
TransactionIsolation.REPEATABLE_READ)) {
|
||||
Account from = accounts.get(fromId);
|
||||
Account to = accounts.get(toId);
|
||||
if (from.balance < amount) throw new RuntimeException("INSUFFICIENT");
|
||||
from.balance -= amount; to.balance += amount;
|
||||
accounts.put(fromId, from);
|
||||
accounts.put(toId, to);
|
||||
tx.commit();
|
||||
}
|
||||
```
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
### Compute grid (broadcast)
|
||||
```java
|
||||
ignite.compute().broadcast(() -> {
|
||||
System.out.println("Hello from " + ignite.cluster().localNode().id());
|
||||
});
|
||||
// Send Lambda — Ignite peer-class-loads to all nodes
|
||||
```
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
### Continuous query (CDC-like)
|
||||
```java
|
||||
ContinuousQuery<Long, Order> qry = new ContinuousQuery<>();
|
||||
qry.setLocalListener(events -> {
|
||||
for (CacheEntryEvent<? extends Long, ? extends Order> e : events)
|
||||
System.out.println("Updated: " + e.getKey() + " → " + e.getValue());
|
||||
});
|
||||
qry.setRemoteFilterFactory(() -> e -> e.getValue().getStatus().equals("paid"));
|
||||
orders.query(qry);
|
||||
```
|
||||
|
||||
### Native persistence
|
||||
```java
|
||||
DataStorageConfiguration ds = new DataStorageConfiguration();
|
||||
ds.getDefaultDataRegionConfiguration().setPersistenceEnabled(true);
|
||||
ds.setStoragePath("/var/ignite/persistence");
|
||||
cfg.setDataStorageConfiguration(ds);
|
||||
// Restart-safe; in-memory speed + durability
|
||||
ignite.cluster().state(ClusterState.ACTIVE);
|
||||
```
|
||||
|
||||
### Thin client (lightweight, no peer-class-loading)
|
||||
```java
|
||||
ClientConfiguration cc = new ClientConfiguration().setAddresses("ignite:10800");
|
||||
try (IgniteClient c = Ignition.startClient(cc)) {
|
||||
ClientCache<Long, Order> orders = c.getOrCreateCache("orders");
|
||||
orders.put(1L, new Order(...));
|
||||
}
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Tool |
|
||||
|---|---|
|
||||
| Pure key-value cache, simple | Redis |
|
||||
| K-V + distributed events, JVM | Hazelcast |
|
||||
| K-V + ANSI SQL + ACID + compute grid | Ignite |
|
||||
| In-process cache | Caffeine |
|
||||
| Cloud-native managed | ElastiCache / Memorystore / GridGain Cloud |
|
||||
|
||||
**기본값**: 매 Redis 매 simple cache, 매 Ignite 매 SQL+ACID+compute integrated, 매 Hazelcast 매 JVM-native event-driven.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[In-Memory Data Grid]] · [[Distributed Cache]]
|
||||
- 변형: [[Hazelcast]] · [[GridGain]] · [[Redis Cluster]]
|
||||
- 응용: [[Distributed SQL]] · [[Compute Grid]] · [[Service Grid]]
|
||||
- Adjacent: [[JCache]] · [[Caffeine]] · [[Memcached]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 sub-ms latency + SQL + ACID 의 simultaneous requirement, 매 compute-near-data, 매 JVM ecosystem.
|
||||
**언제 X**: 매 simple cache only (Redis cheaper), 매 non-JVM stack (limited tooling), 매 small data (<10GB, single node fine).
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **No backups**: 매 node loss → data loss. 매 setBackups(≥1).
|
||||
- **Cross-cache JOIN without affinity**: 매 network shuffle, 매 query 의 slow.
|
||||
- **Synchronous replication everywhere**: 매 latency. 매 PRIMARY_SYNC + async backup balance.
|
||||
- **Mixing partitioned + replicated joins carelessly**: 매 broadcast amplification.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Apache Ignite docs 2.16, GridGain documentation, ASF Ignite 3.x roadmap).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — full content (Ignite cache, SQL, transactions, compute grid) |
|
||||
|
||||
Reference in New Issue
Block a user