Professional Documents
Culture Documents
3.You are the DBA for the database designed for a shopping website.
What
are the various roles and responsibilities which you need to take care
of?
Mention in points with relevant examples.
Answers:--
Answer :
For Storing information about inventories , customers and orders in a local
grocery store Databases System is most suitable because if you use File
System you may
face many problems such as :
• In File System Data redundancy can occurs when the same piece
of data exists in multiple files
• In File System Data inconsistency can occurs between file when
similar data is kept in different format in two different files.
• In File System Multiple users can not access data concurrently
• In File System we should know the physical details of the file before
accessing
• Integrity problems are there in file system
• Searching is difficult in file System
• In file system since your files can be saved in a folder where you
should
have provided write permissions, it is prone to safety issues and invites
trouble, like hacking.
And Database System Solves all these Problems , So Database System
would
be most preferable for storing these kind of information.
Answers:-
. A basic ticket booking system will work as below:
A user will go to that ticket booking website and book a ticket. The booking website will go to the
theatre database and books the ticket and return the status message to the user.
Basic flow:
system Design Example 3: System design for Online movie ticket booking system
So how does the ticket booking website know about the tickets availability and the status of the
tickets?
This can be done by using any one of two methods explained below:
In this method, the theatre will expose the API like “get_total_ticket_count()”, “book_ticket()”. You
can use those API for ticket booking.
Highly concurrent:
A highly successful ticket booking system will book around one hundred thousand tickets a day.
Along with that it will also be users visiting the website for checking out the reviews and scanning
for seats. Hence there will be too many reads and writes, hence there is a need for highly
concurrent syste
ResponsiveUI:
As users will be coming from different platform, like mobile, PC, laptop etc. The UI should be
responsive to make user experience better. You can build a responsive UI for website and multiple
mobile applications for multiple platforms.
As there are multiple cities, the booking system should scale to support multiple cities.
Payment Integration
Now a day there are multiple ways to pay for a service, like debit card, credit card, wallets etc. The
service should be able to support all these platforms. A easy way to integrate with a 3rd party
service that supports all the payment system.
Movie Suggestions
Here by looking at the movie taste of the user, platform has to suggest up coming movies according
to user taste.
Movie Info
This section should give the information about the movie cast, crew and additional info about that
particular movie.
Once the user successfully books a ticket, the system should send a copy of the ticket via SMS,
email or WhatsApp.
Below is the basic system design for online movie ticket booking platform.
Let us understand how all these systems will work together:
system Design Example 3: System design for Online movie ticket booking system