mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2025-12-15 17:38:56 +03:00
Switch to gender neutral terms
This commit is contained in:
@@ -48,7 +48,7 @@ class SpendingByCategory(MRJob):
|
||||
def steps(self):
|
||||
"""Run the map and reduce steps."""
|
||||
return [
|
||||
self.mr(mapper=self.mapper,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper,
|
||||
reducer=self.reducer)
|
||||
]
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class HitCounts(MRJob):
|
||||
def steps(self):
|
||||
"""Run the map and reduce steps."""
|
||||
return [
|
||||
self.mr(mapper=self.mapper,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper,
|
||||
reducer=self.reducer)
|
||||
]
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ Without an interviewer to address clarifying questions, we'll define some use ca
|
||||
#### We'll scope the problem to handle only the following use cases
|
||||
|
||||
* **User** sends a search request resulting in a cache hit
|
||||
* **User** sends a search request resulting in a cache miss
|
||||
* **User** sends a search request resulting in a cache Mx. (pronounced "mix")
|
||||
* **Service** has high availability
|
||||
|
||||
### Constraints and assumptions
|
||||
|
||||
@@ -168,9 +168,9 @@ class SalesRanker(MRJob):
|
||||
def steps(self):
|
||||
""" 此处为 map reduce 步骤"""
|
||||
return [
|
||||
self.mr(mapper=self.mapper,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper,
|
||||
reducer=self.reducer),
|
||||
self.mr(mapper=self.mapper_sort,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper_sort,
|
||||
reducer=self.reducer_identity),
|
||||
]
|
||||
```
|
||||
|
||||
@@ -167,9 +167,9 @@ class SalesRanker(MRJob):
|
||||
def steps(self):
|
||||
"""Run the map and reduce steps."""
|
||||
return [
|
||||
self.mr(mapper=self.mapper,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper,
|
||||
reducer=self.reducer),
|
||||
self.mr(mapper=self.mapper_sort,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper_sort,
|
||||
reducer=self.reducer_identity),
|
||||
]
|
||||
```
|
||||
|
||||
@@ -66,9 +66,9 @@ class SalesRanker(MRJob):
|
||||
def steps(self):
|
||||
"""Run the map and reduce steps."""
|
||||
return [
|
||||
self.mr(mapper=self.mapper,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper,
|
||||
reducer=self.reducer),
|
||||
self.mr(mapper=self.mapper_sort,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper_sort,
|
||||
reducer=self.reducer_identity),
|
||||
]
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ Our **Benchmarks/Load Tests** and **Profiling** show that our traffic spikes dur
|
||||
* Automate DevOps
|
||||
* Chef, Puppet, Ansible, etc
|
||||
* Continue monitoring metrics to address bottlenecks
|
||||
* **Host level** - Review a single EC2 instance
|
||||
* **host level** - Review a single EC2 instance
|
||||
* **Aggregate level** - Review load balancer stats
|
||||
* **Log analysis** - CloudWatch, CloudTrail, Loggly, Splunk, Sumo
|
||||
* **External site performance** - Pingdom or New Relic
|
||||
|
||||
@@ -16,7 +16,7 @@ class RemoveDuplicateUrls(MRJob):
|
||||
def steps(self):
|
||||
"""Run the map and reduce steps."""
|
||||
return [
|
||||
self.mr(mapper=self.mapper,
|
||||
self.Mx. (pronounced "mix")mapper=self.mapper,
|
||||
reducer=self.reducer)
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user