google-nomulus/javatests/google/registry
mcilwain ce136f9285 Add short-term host/contact caching for high-QPS domain mutations
After investigating common domain create/update command usage
patterns by registrars, we noticed that it is frequent for a
given registrar to reuse both hosts (using a standardized set of
nameservers) as well as contacts (e.g. for privacy/proxy
services). With these usage patterns, potential per-registrar
throughput during high volume scenarios (i.e. first moments of
General Availability) suffers from hitting hot keys in Datastore.

The solution, implemented in this CL, is to add short-term
in-memory caching for contacts and hosts, analogous to how we are
already caching Registry and Registrar entities.  These new
cached paths are only used inside domain flows to determine
existence and deleted/pending delete status of contacts and
hosts. This is a potential loss of transactional consistency, but
in practice it's hard to imagine this having negative effects, as
contacts or hosts that are in use cannot be deleted, and caching
would primarily affect widely used contacts and hosts.

Note that this caching can be turned on or off through a
configuration option, and by default would be off. We'd only want
it on when we really needed it, i.e. during a big launch.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187093378
2018-03-06 19:05:20 -05:00
..
backup Rationalize logging statements across codebase 2018-01-19 14:56:45 -05:00
batch Accept a list of TLDs on which to delete "prober" (test) data. 2018-03-06 19:03:48 -05:00
beam Move invoice generation to billing bucket and improve emailing 2018-01-19 14:34:14 -05:00
bigquery Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
builddefs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
cron Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
dns Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
export Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
flows Add short-term host/contact caching for high-QPS domain mutations 2018-03-06 19:05:20 -05:00
groups Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
keyring Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
mapreduce/inputs Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
model Add short-term host/contact caching for high-QPS domain mutations 2018-03-06 19:05:20 -05:00
module Refactor ICANN reporting and billing into common package 2018-02-01 21:56:06 -05:00
monitoring/whitebox Add dependencies on classes that are not in the default modules in JDK 9 2018-02-01 22:00:49 -05:00
pricing Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
proxy Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
rdap RDAP: Show registrar entity even if contacts are redacted 2018-03-06 19:00:47 -05:00
rde Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
reporting Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
request Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
security Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
server Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
storage/drive Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
testing Respect system TMPDIR in GPG related tests 2018-02-20 15:57:41 -05:00
tldconfig/idn Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
tmch Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
tools Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
ui Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
util Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
whois Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
xjc Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
xml Add basic AllocationToken validation/redemption for domain creates 2018-01-19 14:28:26 -05:00