> For the complete documentation index, see [llms.txt](https://faisalaffan.gitbook.io/design-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faisalaffan.gitbook.io/design-system/id/07-lampiran/references.md).

# Referensi

Sumber daya berikut menginformasikan desain dan implementasi proyek ini.

## Buku

1. **Alex Xu** -- *System Design Interview: An Insider's Guide* (Edisi 2), 2021. Bab 4-15 menyediakan pernyataan masalah dan desain tingkat tinggi yang diimplementasikan proyek ini sebagai layanan Go yang berfungsi.
2. **Martin Kleppmann** -- *Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems*. O'Reilly Media, 2017. Teori latar belakang tentang model konsistensi, partisi, replikasi, dan trade-off sistem terdistribusi yang mendasari keputusan desain di setiap layanan.

## Dokumentasi Resmi

3. **Go Standard Library** -- <https://pkg.go.dev/std>. Digunakan secara ekstensif di semua layanan: `net/http`, `sync`, `encoding/json`, `container/heap` (untuk top-K di search-autocomplete), `crypto/sha256` (untuk deduplikasi di web-crawler), dan `hash/crc32` (untuk consistent hashing).

## Framework dan Pustaka

4. **Gin Gonic** -- <https://github.com/gin-gonic/gin>. Framework HTTP yang digunakan oleh semua layanan. Menyediakan routing, middleware chaining, request binding, dan rendering JSON.
5. **gorilla/websocket** -- <https://github.com/gorilla/websocket>. Implementasi WebSocket yang digunakan oleh chat system untuk koneksi dua arah yang persisten.
6. **golang.org/x/net/html** -- Pustaka ekstensi Go resmi untuk parsing HTML, digunakan oleh web crawler untuk ekstraksi tautan selama traversal BFS.

## Pola dan Algoritma

7. **Snowflake ID** -- Algoritma pembuatan ID unik terdistribusi Twitter. Dijelaskan dalam posting blog Snowflake (2010) dan banyak dirujuk di seluruh literatur desain sistem.
8. **Consistent Hashing** -- Awalnya dijelaskan oleh David Karger dkk. (1997) untuk digunakan dalam caching terdistribusi. Diperluas dengan virtual node dalam makalah Amazon Dynamo (2007).
9. **Sliding Window Algorithm** -- Pendekatan rate limiting yang dijelaskan dalam literatur desain sistem sebagai peningkatan dari penghitung fixed-window, menyediakan penegakan tingkat permintaan yang lebih halus.


---

# 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://faisalaffan.gitbook.io/design-system/id/07-lampiran/references.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.
