An open API service indexing awesome lists of open source software.

https://github.com/jiashengguo/ticket-booking-prisma-example

How To Build a High-Concurrency Ticket Booking System With Prisma
https://github.com/jiashengguo/ticket-booking-prisma-example

booking concurrency database node prisma typescript

Last synced: 24 days ago
JSON representation

How To Build a High-Concurrency Ticket Booking System With Prisma

Awesome Lists containing this project

README

          

# Ticket Booking Example With Prisma and ZenStack

This example shows how to implement a concurrent ticket booking system with Prisma and ZenStack.

## Running the example

1. install dependencies

```
npm install
```

2. build

```
npm run build
```

3. seed the database

```
npm run seed
```

4. run any of the below example:

- simple approach

```
npm run simple
```

- optimistic concurrency control in Prisma

```
npm run occ
```

- optimistic concurrency control in ZenStack

```
npm run zen
```