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
- Host: GitHub
- URL: https://github.com/jiashengguo/ticket-booking-prisma-example
- Owner: jiashengguo
- Created: 2023-09-15T16:42:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T20:05:05.000Z (about 2 years ago)
- Last Synced: 2025-05-07T21:40:03.656Z (7 months ago)
- Topics: booking, concurrency, database, node, prisma, typescript
- Language: TypeScript
- Homepage: https://dev.to/zenstack/how-to-build-a-high-concurrency-ticket-booking-system-with-prisma-184n
- Size: 103 KB
- Stars: 14
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```