You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -485,7 +485,7 @@ There are two main patterns to support high availability: **fail-over** and **re
485
485
486
486
With active-passive fail-over, heartbeats are sent between the active and the passive server on standby. If the heartbeat is interrupted, the passive server takes over the active's IP address and resumes service.
487
487
488
-
The length of downtime is determined by whether the passive server is already running in 'hot' standy or whether it needs to start up from 'cold' standby. Only the active server handles traffic.
488
+
The length of downtime is determined by whether the passive server is already running in 'hot' standby or whether it needs to start up from 'cold' standby. Only the active server handles traffic.
489
489
490
490
Active-passive failover can also be referred to as master-slave failover.
491
491
@@ -618,7 +618,7 @@ Load balancers can route traffic based on various metrics, including:
618
618
619
619
* Random
620
620
* Least loaded
621
-
*Seesion/cookies
621
+
*Session/cookies
622
622
*[Round robin or weighted round robin](http://g33kinfo.com/info/archives/2657)
623
623
*[Layer 4](#layer-4-load-balancing)
624
624
*[Layer 7](#layer-7-load-balancing)
@@ -719,7 +719,7 @@ Workers in the application layer also help enable [asynchronism](#asynchronism).
719
719
720
720
### Microservices
721
721
722
-
Related to this discussion are [microservices](https://en.wikipedia.org/wiki/Microservices), which can be described as a suite of independently deployable, small, modular services. Each service runs a unique process and communicates through a well-definied, lightweight mechanism to serve a business goal. <sup><a href=https://smartbear.com/learn/api-design/what-are-microservices>1</a></sup>
722
+
Related to this discussion are [microservices](https://en.wikipedia.org/wiki/Microservices), which can be described as a suite of independently deployable, small, modular services. Each service runs a unique process and communicates through a well-defined, lightweight mechanism to serve a business goal. <sup><a href=https://smartbear.com/learn/api-design/what-are-microservices>1</a></sup>
723
723
724
724
Pinterest, for example, could have the following microservices: user profile, follower, feed, search, photo upload, etc.
725
725
@@ -755,8 +755,8 @@ A relational database like SQL is a collection of data items organized in tables
755
755
**ACID** is a set of properties of relational database [transactions](https://en.wikipedia.org/wiki/Database_transaction).
756
756
757
757
***Atomicity** - Each transaction is all or nothing
758
-
***Consistency** - Any tranaction will bring the database from one valid state to another
759
-
***Isolation** - Excuting transactions concurrently has the same results as if the transactions were executed serially
758
+
***Consistency** - Any transaction will bring the database from one valid state to another
759
+
***Isolation** - Executing transactions concurrently has the same results as if the transactions were executed serially
760
760
***Durability** - Once a transaction has been committed, it will remain so
761
761
762
762
There are many techniques to scale a relational database: **master-slave replication**, **master-master replication**, **federation**, **sharding**, **denormalization**, and **SQL tuning**.
@@ -857,7 +857,7 @@ Common ways to shard a table of users is either through the user's last name ini
857
857
858
858
#### Denormalization
859
859
860
-
Denormalization attemps to improve read performance at the expense of some write performance. Redundant copies of the data are written in multiple tables to avoid expensive joins. Some RDBMS such as [PostgreSQL](https://en.wikipedia.org/wiki/PostgreSQL) and Oracle support [materialized views](https://en.wikipedia.org/wiki/Materialized_view) which handle the work of storing redudant information and keeping redundant copies consistent.
860
+
Denormalization attempts to improve read performance at the expense of some write performance. Redundant copies of the data are written in multiple tables to avoid expensive joins. Some RDBMS such as [PostgreSQL](https://en.wikipedia.org/wiki/PostgreSQL) and Oracle support [materialized views](https://en.wikipedia.org/wiki/Materialized_view) which handle the work of storing redundant information and keeping redundant copies consistent.
861
861
862
862
Once data becomes distributed with techniques such as [federation](#federation) and [sharding](#sharding), managing joins across data centers further increases complexity. Denormalization might circumvent the need for such complex joins.
863
863
@@ -1108,7 +1108,7 @@ There are multiple levels you can cache that fall into two general categories: *
1108
1108
* Fully-formed serializable objects
1109
1109
* Fully-rendered HTML
1110
1110
1111
-
Generaly, you should try to avoid file-based caching, as it makes cloning and auto-scaling more difficult.
1111
+
Generally, you should try to avoid file-based caching, as it makes cloning and auto-scaling more difficult.
1112
1112
1113
1113
### Caching at the database query level
1114
1114
@@ -1351,7 +1351,7 @@ TCP is useful for applications that require high reliability but are less time c
1351
1351
1352
1352
Use TCP over UDP when:
1353
1353
1354
-
* You need all of the data to arrive in tact
1354
+
* You need all of the data to arrive intact
1355
1355
* You want to automatically make a best estimate use of the network throughput
0 commit comments