> For the complete documentation index, see [llms.txt](https://gunkim.gitbook.io/undefined/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gunkim.gitbook.io/undefined/avro-schema-registry.md).

# avro-schema-registry

### 배운 개념

* 아브로(Avro)는 데이터 바이너리 안에 필드 태그 번호조차 포함하지 않아 크기를 극한으로 줄임.
* 대신 메시지 송신 시 헤더 맨 앞부분에 짧은 '스키마 버전 번호(idx)'만 명찰처럼 동봉함.
* 수신 측은 데이터 앞 5바이트의 버전을 확인하고, 중앙 집중형 **'스키마 레지스트리(Schema Registry)'** DB에서 스키마 본체를 조회(로컬 캐싱)하여 데이터를 동적으로 해석함.

### 오답 및 정정

> \[!WARNING] **오개념**: 아브로는 서로 스키마를 미리 알고 통신한다고 퉁친다. **정정**: 마이크로서비스에서 수동 스키마 공유는 불가능. 스키마 레지스트리라는 컨트롤 플레인을 통해 동적 조회와 매핑이 이루어짐.

### 복습 체크

* [ ] 아브로 포맷의 데이터 안에는 필드 태그 번호가 있는가? 없다면 수신측은 어떻게 구조를 파악하는가?
* [ ] 카프카 송신 시 메시지에 전체 스키마 대신 무엇을 동봉하는가?

\[\[schema-evolution]]


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gunkim.gitbook.io/undefined/avro-schema-registry.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
