Skip to content

Instantly share code, notes, and snippets.

@imghasemi
Created September 30, 2019 07:27
Show Gist options
  • Save imghasemi/1a0ade5f8cabd61b209544248fb35e07 to your computer and use it in GitHub Desktop.
Save imghasemi/1a0ade5f8cabd61b209544248fb35e07 to your computer and use it in GitHub Desktop.

Hydration refers to filling an existing object with data. It is not a synonym for serialization.

With respect to the more generic term hydrate Hydrating an object is taking an object that exists in memory, that doesn't yet contain any domain data ("real" data), and then populating it with domain data (such as from a database, from the network, or from a file system).

From Erick Robertson's comments on this answer:

deserialization == instantiation + hydration

REF: https://stackoverflow.com/a/6991192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment