Skip to content

feat(encyclopedia): added new pages to explain the Temporal architecture#4731

Open
flippedcoder wants to merge 12 commits into
mainfrom
mm/architecture
Open

feat(encyclopedia): added new pages to explain the Temporal architecture#4731
flippedcoder wants to merge 12 commits into
mainfrom
mm/architecture

Conversation

@flippedcoder

@flippedcoder flippedcoder commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

This adds 2 new pages to the encyclopedia under a new architecture sub-heading. The first page is to go into detail about the different parts of Temporal, the second page is to go into detail about how Temporal works with an interactive example.

Notes to reviewers

The core changes are in the pages under architecture/how-temporal-works.mdx and architecture/temporal-architecture.mdx.

Everything else is either a link update, new images, or component changes.

┆Attachments: EDU-6553 feat(encyclopedia): added new pages to explain the Temporal architecture

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
temporal-documentation Error Error Jun 26, 2026 2:43pm

Request Review

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@jsundai

jsundai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

I think Temporal Client should be its own thing and not under the architectural section!

Comment thread docs/encyclopedia/architecture/temporal-architecture.mdx Outdated

To understand how Temporal works, you can start at the high level architecture view. This shows how all of the different layers interact with each other. Then you can take a deep dive into each layer.

<EnlargeImage

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This diagram is a bit too complex. Even when enlarged, I can barely read the text. Even if the text was legible, I still feel like there is too much detail in a single diagram.

I think we should remove maybe like 2 levels of details from this. And then in each of the individual component we add the details back. So for example Temporal service just has the 4 services, not the box about what they do. We then add those back when we get to the individual services.

Comment thread docs/encyclopedia/architecture/temporal-architecture.mdx Outdated
Comment thread docs/encyclopedia/architecture/temporal-architecture.mdx
Comment thread docs/encyclopedia/architecture/temporal-architecture.mdx Outdated

Temporal can also integrate with Elasticsearch to provide advanced search and visibility capabilities for Workflow Executions. Without it, you're limited to basic filtering. Grafana can be used to enable operational dashboards and monitoring for the Temporal Service itself.

## Infrastructure

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if this section adds much value compared with the rest to explain Temporal architecture. It reads a little more like marketing copy to me, and I feel like it's not in the right place.


In a Temporal application, the [Client](/encyclopedia/architecture/temporal-architecture#client-application), [Server](/encyclopedia/architecture/temporal-architecture#the-temporal-server), and [Worker](/encyclopedia/architecture/temporal-architecture#worker-service) are three separate parts that talk to each other and each one has a clear purpose. To understand the internal mechanics of Temporal, it helps to follow what happens when you start a Workflow or schedule [Tasks](/tasks#task).

## Relationship between the Client, Server, and Worker

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have a high-level summary of the relationship here, maybe accompanied by a diagram?

Or maybe we do away with this all together and explain it all in the interactive demo. Right now users have to scroll to get to the demo with this text here

Comment thread docs/encyclopedia/architecture/how-temporal-works.mdx Outdated
Comment thread docs/encyclopedia/architecture/how-temporal-works.mdx Outdated

**Step 4: A Worker polls for a Workflow Task**

A Worker process (your code + SDK) is already polling that Task Queue using PollWorkflowTask via Frontend Service. The Frontend Service asks Matching for a task. The Matching Service picks this Workflow Task and tells the History Service that it was started. The History Service appends WorkflowTaskStarted to the Event History and returns the Workflow Task (plus history) to the Worker through Frontend.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like sometimes we are a little inconsistent with when the frontend service is involved. All extenal components only talks to frontend, but sometimes we don't involve the frontend and only show the underlying service (e.g. worker -> task queue instead of worker -> frontend -> matching service -> task queue). I think we need to either add some clarification or be consistent here

Co-authored-by: Lenny Chen <55669665+lennessyy@users.noreply.github.com>
@flippedcoder

flippedcoder commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

I think Temporal Client should be its own thing and not under the architectural section!

@jsundai Just trying to understand, but what makes you think that about the client page? And do you think the same goes for the SDK page? 👀

Co-authored-by: Lenny Chen <55669665+lennessyy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants