- What is Redis? Mention one use case of Redis.
- What type of database is Redis and where does it hold its data?
- What is Websocket and what is it used for?
- Explain 3 use cases for CRON jobs.
- What are the 3 types of design patterns in Nodejs?
-
-
Save halitbatur/913afa58b25b2858eb0c93e7504c2cc3 to your computer and use it in GitHub Desktop.
Abdul Hafiz, Amjad AlKhatib, Noor Awied
What is Redis? Mention one use case of Redis.
Redis is an open source key-value database. Data in a key-value database has two parts: the key and the value. Because Redis can accept keys in a wide range of formats, operations can be executed on the server and reduce the client's workload. Redis is often used for cache management and speeding up web applications.
holds its database entirely in memory
What type of database is Redis and where does it hold its data?
Redis is a Cache, it is more of a volatile and an in Memory database. The data is stored in Key-Value pairs, it’s commonly referred to as a data structure server.
Common use cases:
Cache, Publish and Subscribe, Queues, Counters
What is Websocket and what is it used for?
The WebSocket API is an advanced technology that makes it possible to open a
two-way interactive communication session between the user's browser and a
server. With this API, you can send messages to a server and receive
event-driven responses without having to poll the server for a reply.
WebSocket is bidirectional, a full-duplex protocol that is used in the samescenario of client-server communication, unlike HTTP it starts from ws:// or wss://. It is a stateful protocol, which means the connection between client and server will keep alive until it is terminated by either party (client or server). After closing the connection by either of the client and server, the connection is terminated from both ends.
Explain 3 use cases for CRON jobs.
cron is a Linux utility that schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself.
If you have a membership site, where accounts have expiration dates, you can schedule cron jobs to regularly deactivate or delete accounts that are past their expiration dates.
You can send out daily newsletter e-mails.
If you have summary tables (or materialized views) in your database, they can be regularly updated with a cron job. For example you may store every web page hit in a table, but another summary table may contain daily traffic summaries.
What are the 3 types of design patterns in Nodejs?
Creational - the creation of the object instances
Structural - the way the objects are designed
Behavioural - how objects interact with each other
References:
https://www.geeksforgeeks.org/what-is-web-socket-and-how-it-is-different-from-the-http/
https://www.credera.com/insights/redis-explained-5-minutes-less
https://www.hostgator.com/help/article/what-are-cron-jobs
https://code.tutsplus.com/tutorials/scheduling-tasks-with-cron-jobs--net-8800
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
Sara, Muhammed Nur, Dilara
https://docs.google.com/document/d/1q8-CCGi8IHjUNvj7tgOgTp0-qGqKA_2wnzjTT8DSFdU/edit?usp=sharing
Team Members: Israa, Hala, Yaman.
What is Redis? Mention one use case of Redis.
Redis is an open-source key-value database. Data in a key-value database has two parts: the key and the value. Because Redis can accept keys in a wide range of formats,
Cashing is the most popular use case for Redis.
What type of database is Redis and where does it hold its data?
Redis is a NoSQL database, it stores data on the computer’s random access memory (RAM) instead of writing it to a hard disk
What is Websocket and what is it used for?
WebSocket is bidirectional, a full-duplex protocol that is used in the same scenario of client-server communication, unlike HTTP it starts from ws:// or wss://. It is a stateful protocol, which means the connection between client and server will keep alive until it is terminated by either party (client or server)
Explain 3 use cases for CRON jobs.
CRON stands for Command Run On (UNIX scheduler)
The cron command-line utility is a job scheduler on Unix-like operating systems. Users who set up and maintain software environments use cron to schedule jobs, also known as cron jobs, to run periodically at fixed times, dates, or intervals
The general purpose of Cron is to automate repetitive tasks,
-To send a newsletter (schedule sending newsletter )
-To monitor the status of the server and services.
-backup personal data. (e.g.Whatsapp chat backup)
What are the 3 types of design patterns in Nodejs?
Creational - the creation of the object instances
Structural - the way the objects are designed
Behavioural - how objects interact with each other