> For the complete documentation index, see [llms.txt](https://docs.geopard.tech/geopard-tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geopard.tech/geopard-tutorials/ro/documentatie-api/diagrame-cu-fluxuri-de-baza/2.-abonament-graphql.md).

# 2. Abonament GraphQL

Diagrama de secvență pentru Subscrierile GraphQL ilustrează cum să profiți de arhitectura orientată pe evenimente implementată în nucleul GeoPard. La orice modificare a entităților legate,

API-ul GeoPard emite prompt un eveniment care capturează entitățile afectate și operațiunea corespunzătoare (`INSERARE`, `MODIFICARE`, `ȘTERGERE`). Domeniul acestor subscrieri este extins, acoperind toate entitățile precum Fermă, Parcelă, ImagineSatelit, SetDateSol, SetDateAplicat, SetDateRecoltă, HartăTopografie, Note etc.&#x20;

Subscrierea GraphQL ([Cerere 1 sau R1](/geopard-tutorials/ro/documentatie-api/prezentare-generala-a-solicitarilor-geopard-api/1.-abonament-obtine-evenimente.md)) funcționează pe un WebSocket unde toate evenimentele sunt livrate aproape în timp real, asigurând comunicarea imediată a oricăror modificări.&#x20;

{% hint style="danger" %}
Receptorul evenimentelor de subscriere ar trebui să funcționeze ca un serviciu de bază, responsabil cu rutarea evenimentelor primite către un serviciu ulterior unde se aplică logica de procesare. Este crucial ca acest receptor să nu efectueze el însuși sarcini de procesare.
{% endhint %}

Mai mult, în cazul în care sunt pierdute sau ratate evenimente, utilizatorii au capacitatea de a le recupera. Acest lucru se realizează prin executarea unei interogări GraphQL adaptate pentru un interval de date specific și entități (Utilizator, Fermă, Parcelă), permițând astfel o recuperare completă a evenimentelor trecute ([Cerere 2 sau R2](/geopard-tutorials/ro/documentatie-api/prezentare-generala-a-solicitarilor-geopard-api/82.-interogare-restaureaza-evenimentele-abonamentului.md)). Acest nivel de funcționalitate asigură că nicio informație nu se pierde, menținând integritatea și consistența datelor utilizatorilor.

<figure><img src="/files/b9ea99cbea0373dd902a4c53aba2e41b1e620918" alt=""><figcaption><p>Diagramă de secvență: Lucru cu evenimentele de subscriere</p></figcaption></figure>


---

# 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://docs.geopard.tech/geopard-tutorials/ro/documentatie-api/diagrame-cu-fluxuri-de-baza/2.-abonament-graphql.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.
