término |
definición |
empezar lección
|
|
|
|
|
empezar lección
|
|
alternative to MongoDb. An open-source document-oriented NoSQL database, implemented in Erlang
|
|
|
four examples of Wide-column store empezar lección
|
|
Apache Cassandra, Apache HBase, BigTable, scylla
|
|
|
Database replication master/slave empezar lección
|
|
Master -original, only writes, slaves - copies, only reads
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
LRU - Least recently used, LFU - Least Frequently used, FIFO - First in First out
|
|
|
CDN - describe what it is empezar lección
|
|
A CDN is a network of geographically dispersed servers used to deliver static content. CDN servers cache static content like images, videos, CSS, JavaScript files, etc.
|
|
|
empezar lección
|
|
is a system or repository of data stored in its natural/raw format,[1] usually object blobs or files
|
|
|
empezar lección
|
|
session is kept in NoSQL database. It is no longer kept in web server. Each server in the cluster can access state data from the database
|
|
|
Load balancer, sticky session empezar lección
|
|
user who authenticated in one of the servers in a cluster, will be redirected to the same server for future calls (for certain amount of time that is longer than the session timeout)
|
|
|
Disadvantages of sticky session empezar lección
|
|
more difficult to add or remove servers, more difficult to handle server failures
|
|
|
Advantages of stateless web tier vs stateful web tier empezar lección
|
|
simpler, more robust and scalable
|
|
|
Shared data store for state data (sessions), what to use empezar lección
|
|
|
|
|
empezar lección
|
|
geolocation DNS routing - to make sure, that the client is directed to the closest datacenter
|
|
|
Logging and monitoring tool empezar lección
|
|
Datadog, Matomo, prometeus, Pendo
|
|
|
example of Key business metrics empezar lección
|
|
|
|
|
empezar lección
|
|
each shard has the same schema, but data are specific to shard- user data is allocated to specific shard - hash function is used to find the shard e.g. user_id % 4
|
|
|
Sharding key vs partition key empezar lección
|
|
Sharding key vs partition key
|
|
|
Two Problems with sharding empezar lección
|
|
Resharding data - r.g. One shard goes down, Celebrity problem = hotspot key problem
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
1PB ~ 1 000 000 000 000 000
|
|
|
empezar lección
|
|
A memory bank built into the CPU chip. Also known as the "primary cache," an L1 cache is the fastest memory in the computer and closest to the processor.
|
|
|
empezar lección
|
|
is a messaging pattern used to model an information exchange that implies the delivery (or spreading) of a message to one or multiple destinations possibly in parallel
|
|
|
empezar lección
|
|
simple notification service
|
|
|
empezar lección
|
|
Amazon Elastic Compute Cloud
|
|
|
empezar lección
|
|
allows users to rent virtual computers on which to run their own computer applications
|
|
|
empezar lección
|
|
Amazon Elastic Block Store
|
|
|
empezar lección
|
|
block level storage volumes for use with EC2 instances. You can create a file system on top of these volumes, or use them in any way you would use a block device (such as a hard drive)
|
|
|
empezar lección
|
|
is a fully managed proprietary NoSQL database service that supports key–value and document data structures
|
|
|
empezar lección
|
|
is a relational database service developed and offered by Amazon Web Services beginning in October 2014 Aurora is available as part of the Amazon Relational Database Service (RDS).
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
|
|
|
empezar lección
|
|
10 microseconds = 10000 ns
|
|
|
Send 1KB via 1Gbps network empezar lección
|
|
|
|
|
read 1MB sequentially from memory empezar lección
|
|
|
|
|
read 1MB sequentially from disk empezar lección
|
|
|
|
|
read 1MB sequentially from network empezar lección
|
|
|
|
|
empezar lección
|
|
The difference is that sharding implies the data is spread across multiple computers while partitioning does not. Partitioning is about grouping subsets of data within a single database instance
|
|
|
empezar lección
|
|
consistent hashingConsistent hashing is a special kind of hashing such that when a hash table is re-sized and consistent hashing is used, only k/n keys need to be remapped on average, where k is the number of keys, and n is the number of slots
|
|
|
consistent hashing describe algorithm empezar lección
|
|
To determine which server a key is stored on, we go clockwise from the key position on the ring until a server is found.
|
|
|