9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
5.5 KiB
5.5 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-in-memory-data-grid | In-Memory Data Grid | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
In-Memory Data Grid
매 한 줄
"매 distributed RAM 의 partitioned + replicated 의 통한 sub-ms key-value + compute 의 horizontal scale". 매 Oracle Coherence (2001) 의 commercial origin, 매 Hazelcast (2008) / Apache Ignite (2014) 의 OSS 의 popularization — 매 modern 의 Redis Cluster + Apache Ignite + Hazelcast 5.x 의 dominant.
매 핵심
매 IMDG vs Distributed Cache
- Cache (Redis, Memcached): 매 read-through, eviction-driven, simple K/V.
- IMDG (Hazelcast, Ignite, Coherence): + co-located compute, SQL, transactions, near-cache, entry processors, CP subsystem.
매 Core Capabilities
- Partitioning: consistent hash, 매 271 partitions (Hazelcast default).
- Replication: backup count (sync/async), 매 partition 의 N-1 backup.
- Near Cache: client-side mirror, invalidation 의 push.
- Entry Processor: 매 data-local computation (move code to data).
- Continuous Query: predicate-based push.
- CP Subsystem: Raft-based linearizable primitives (Hazelcast 4+).
매 응용
- Session store / shopping cart (low-latency).
- Real-time risk / pricing (compute grid).
- Hybrid OLTP+stream (Ignite + Kafka).
💻 패턴
Hazelcast 5 — Embedded + IMap
HazelcastInstance hz = Hazelcast.newHazelcastInstance();
IMap<String, Order> orders = hz.getMap("orders");
orders.put("o-123", new Order(...));
Order o = orders.get("o-123"); // sub-ms
// Pessimistic lock 의 partition-local
orders.executeOnKey("o-123", entry -> {
Order cur = entry.getValue();
cur.markPaid();
entry.setValue(cur);
return null;
});
Apache Ignite — SQL over Cache
IgniteConfiguration cfg = new IgniteConfiguration();
Ignite ignite = Ignition.start(cfg);
CacheConfiguration<Long, Person> ccfg = new CacheConfiguration<>("Person");
ccfg.setIndexedTypes(Long.class, Person.class);
IgniteCache<Long, Person> cache = ignite.getOrCreateCache(ccfg);
List<List<?>> rows = cache.query(new SqlFieldsQuery(
"SELECT name, salary FROM Person WHERE salary > ? ORDER BY salary DESC")
.setArgs(100_000)).getAll();
Hazelcast Near Cache
hazelcast-client:
near-cache:
orders:
in-memory-format: OBJECT
invalidate-on-change: true
time-to-live-seconds: 60
max-size: 10000
eviction-policy: LRU
Entry Processor (move compute to data)
public class IncrementVersion implements EntryProcessor<String, Order, Long> {
public Long process(Map.Entry<String, Order> e) {
Order o = e.getValue();
o.setVersion(o.getVersion() + 1);
e.setValue(o);
return o.getVersion();
}
}
Long v = orders.executeOnKey("o-1", new IncrementVersion());
Continuous Query (Hazelcast)
IMap<String, Order> orders = hz.getMap("orders");
orders.addEntryListener((EntryAddedListener<String, Order>) ev -> {
if (ev.getValue().getAmount() > 10_000) alert(ev.getValue());
}, Predicates.greaterThan("amount", 10_000), true);
CP Subsystem — Linearizable Counter
CPSubsystem cp = hz.getCPSubsystem();
IAtomicLong seq = cp.getAtomicLong("order-seq");
long next = seq.incrementAndGet(); // Raft-backed, linearizable
Kubernetes Deployment (Hazelcast Operator)
apiVersion: hazelcast.com/v1alpha1
kind: Hazelcast
metadata: { name: hz }
spec:
clusterSize: 5
repository: hazelcast/hazelcast
version: "5.5"
persistence:
baseDir: /data/hot-restart
pvc: { accessModes: [ReadWriteOnce], requestStorage: 50Gi }
매 결정 기준
| 상황 | Approach |
|---|---|
| Simple K/V cache | Redis / Memcached |
| Java-heavy + SQL on cache | Apache Ignite |
| Compute + cache + CP primitives | Hazelcast 5 |
| Multi-language polyglot | Redis Cluster + redis-om |
| Persistent in-memory DB | Ignite native persistence / Aerospike |
기본값: 매 Java/Kotlin stack — Hazelcast 5; 매 polyglot — Redis Cluster.
🔗 Graph
- 부모: Distributed-Systems
- 변형: Distributed-Cache · NewSQL
- 응용: Apache Ignite
- Adjacent: CAP-Theorem · Consistent-Hashing
🤖 LLM 활용
언제: IMDG 의 sizing 의 estimate, partition strategy 의 review, Hazelcast/Ignite config 의 generate. 언제 X: 매 production 의 capacity planning 의 final sign-off (real workload benchmark 필수).
❌ 안티패턴
- Distributed monolith state: 매 service 의 IMDG 의 shared mutable state — 매 hidden coupling.
- N+1 across grid: client-side loop 의 단일 키 fetch — 매 batch API 의 use.
- No backup count: backup=0 → 매 node loss 의 data loss.
- Serialization neglect: default Java serialization → 매 slow + bloated, 매 IdentifiedDataSerializable / Compact 의 use.
- Treating IMDG as durable DB: 매 persistence 의 explicit config 없이 → restart 의 data loss.
🧪 검증 / 중복
- Verified (Hazelcast 5.5 docs, Apache Ignite 2.16 docs, Oracle Coherence 14c docs).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — IMDG (Hazelcast/Ignite) 의 full content |