);
-}
-
-const slides = [
- {
- title: "Temporal Service",
- description: "Provides reliable and scalable workflow orchestration.",
- content1: `A Temporal Service ensures that Workflows are resilient by saving each step the Workflow code takes. It also schedules retries whenever there are errors in your application’s code.`,
- content2: `You can run it wherever you’d like and scale from a single laptop to thousands of machines, adding resources when and where you need them. And although you've just set up a lightweight Temporal Service for development, switching your code to point at a production Temporal Service only requires changing your connection parameters.`,
- giphy: "eePSFNBFv2W9owZ4Sh",
- },
- {
- title: "SDKs",
- description: "Write code in your programming language of choice.",
- content1:
- "A Temporal SDK is a library you use in your code. Each SDK has two parts to its API: the Client and the Worker. The Worker is the long-running process that has your Workflow code. The Client is used to communicate with the Temporal Service—for instance, to start and interact with Workflows.",
- giphy: "6UFgdU9hirj1pAOJyN",
- },
- {
- title: "Workflows",
- description: "Write your business logic as code in a Temporal Workflow.",
- content1: `Temporal applications are built using an abstraction called Workflows. Workflows are functions or methods written in a general-purpose programming language such as Go, Java, TypeScript, or Python.`,
- content2: `Temporal ensures that your Workflows execute reliably. They can run—and keep running—for years, even if the underlying infrastructure fails. If the application crashes, Temporal will automatically recreate its pre-failure state so that it can continue right where it left off.`,
- giphy: "l0IylOPCNkiqOgMyA ",
- },
- {
- title: "Determinism",
- description: "Writing deterministic Workflows guarantees durability in the case of failure.",
- content1: `Temporal's guarantee that your Workflow code can’t fail to continue running requires that the code in your Workflow must be deterministic. Simply put, this means that each execution of a Workflow, given the same input, must follow the same path through the code and produce the same output.`,
- content2: `This means that you can’t generate a random number or interact with the outside world, as these actions are inherently non-deterministic. Generating a random number twice will likely produce different results, and if you access files, databases, or network services, you might get a failure or different results at different times.`,
- giphy: "5FSanfKqd3rS8",
- },
- {
- title: "Activities",
- description: "Activities have the failure-prone parts of your code and are automatically retried upon failure.",
- content1:
- "Activities are functions or methods that you can use to run code that is non-deterministic or prone to failure, such as accessing a database, network service, or file system. Activities are called from Workflow code, and they are automatically retried if they fail. Once the Activity succeeds, the Workflow code will continue executing.",
- giphy: "kaDAIEecq0YuI",
- },
- {
- title: "Workers",
- description:
- "Workers run Workflow and Activity code reliably and consistently. You can increase the scalability and availability of your application by running additional Workers. ",
- content1: `One thing that people new to Temporal find surprising is that the Temporal Service does not execute your code.`,
- content2: `You deploy your code to containers or machines that are separate from the Temporal Service. Using the Worker API provided by the Temporal SDK, you will run one or more Worker processes that will execute your Workflow and Activity code based on tasks managed by the Temporal Service.`,
- content3: `The Temporal Service gives the Workers tasks like “Start running Workflow A,” and the Workers run the corresponding Workflow function or method.`,
- giphy: "DhstvI3zZ598Nb1rFf",
- },
- {
- title: "Temporal CLI",
- description: "Communicate directly with the Temporal Service by entering commands in the terminal.",
- content1: `The Temporal CLI runs a development version of the Temporal Service. Interact with the Temporal Service - start Workflows, list them, get their status, and more.`,
- content2: ` From the command line using the temporal command. From code, using an SDK Client. From your browser, using the Web UI.`,
- giphy: "GA2dwDU7owOS4",
- },
-];
-
-function SlideDots({ activeSlide, handleClick }) {
- return slides.map((link, index) => {
- return (
-