google-nomulus/java/google/registry/model
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
..
annotations Clean up some code quality issues 2017-12-01 22:14:06 -05:00
billing Add an EPP lifecycle test verifying that EAP fees are not refunded 2017-12-27 11:29:07 -05:00
common Replace FluentIterable with streams 2017-12-27 11:40:50 -05:00
contact Migrate Guava Predicates.notNull to Objects.nonNull 2017-12-27 11:19:53 -05:00
domain Add short-term host/contact caching for high-QPS domain mutations 2018-03-06 19:05:20 -05:00
eppcommon Clean up some code quality issues 2017-12-01 22:14:06 -05:00
eppinput Make EppInput.getSingleExtension() return Optional, not @Nullable 2018-01-19 14:40:10 -05:00
eppoutput Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
host Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00
index Add short-term host/contact caching for high-QPS domain mutations 2018-03-06 19:05:20 -05:00
mark Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ofy Replace FluentIterable with streams 2017-12-27 11:40:50 -05:00
poll Remove leniency on poll message ID format without years in them 2018-02-20 15:12:43 -05:00
pricing Clean up some code quality issues 2017-12-01 22:14:06 -05:00
rde Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
registrar Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
registry Add the START_DATE_SUNRISE phase 2018-02-20 15:45:27 -05:00
reporting Fix NPE in GetHistoryEntriesCommand 2017-10-24 16:53:47 -04:00
server Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
smd Replace FluentIterable with streams 2017-12-27 11:40:50 -05:00
tmch Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
transfer Clean up some code quality issues 2017-12-01 22:14:06 -05:00
translators Clarify diff display of MutatingCommand 2017-10-04 16:16:45 -04:00
BackupGroupRoot.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
BUILD Add //third_party/java/jaxb dependency to targets using javax.xml.bind 2018-01-23 16:18:35 -05:00
Buildable.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
CacheUtils.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
CreateAutoTimestamp.java Add create timestamp as field on AllocationToken entity 2018-01-19 14:25:28 -05:00
EntityClasses.java Add basic AllocationToken entity and tests 2018-01-19 14:22:30 -05:00
EppResource.java Add short-term host/contact caching for high-QPS domain mutations 2018-03-06 19:05:20 -05:00
EppResourceUtils.java Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
ImmutableObject.java Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
Jsonifiable.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
JsonMapBuilder.java Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
ModelUtils.java Replace FluentIterable with streams 2017-12-27 11:40:50 -05:00
package-info.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
SchemaVersion.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
UpdateAutoTimestamp.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00