Can you explain the consistency models in distributed databases (e.g., CAP theorem)?

TechnicalSenior Backend DeveloperMiddle Backend Java Developer