2023-12-07-TIL

Today I Learned

Event Journaling

A 시스템에서 B 시스템으로 데이터를 연계할 때 aggregate root 데이터를 변경한다면 어떻게 될까? 하위의 데이터 규모가 기껏해야 1,000건 정도라면 문제가 되지 않을것이다. 하지만 수천만 건이 엮여있는 데이터가 즉시 연계된다면? 그리고 반복적인 요청을 연달아서 한다면? 문제가 될 수 있을 것이다. 따라서 이 부분의 병목현상이 발생하는 것을 방지하기 위해서 연계 데이터 양의 조절이 필요하다.

먼저, 보내는 쪽에서 양을 조절해서 한 번에 가져가지 못 하도록 하는 방법이 있고, 가져가는 쪽에서 양을 조절해서 점진적 업데이트로 처리하는 방법이 있다.

  • https://heeestorys.tistory.com/602

LazyInitializationException in JPA

  • https://velog.io/@oenomel87/JPA-LazyInitializationException

Spring Boot "[]" Character

Spring Boot 톰캣 서버에서는 기본적으로 "[", "]" 문자를 받지 않는다. 따라서 인코딩해서 요청하도록 FE에서 핸들링 해야한다.

Distributed Lock

  • https://redis.io/docs/manual/patterns/distributed-locks/
  • https://happyer16.tistory.com/entry/%EB%A0%88%EB%94%94%EC%8A%A4%EC%99%80-%EB%B6%84%EC%82%B0%EB%9D%BD
  • https://soyeon207.github.io/db/2021/08/29/distributed-lock.html

Distributed Lock vs Database Lock

  • https://stackoverflow.com/questions/11999324/whats-a-distributed-lock-and-why-use-it
  • https://www.linkedin.com/advice/0/what-some-common-distributed-locking-patterns
  • https://happyer16.tistory.com/entry/%EB%A0%88%EB%94%94%EC%8A%A4%EC%99%80-%EB%B6%84%EC%82%B0%EB%9D%BD
  • https://www.javatpoint.com/distributed-locking-in-database

Active Directory vs LDAP

  • https://docs.secureauth.com/0903/en/active-directory-attributes-list.html

SSO vs AD

  • https://jumpcloud.com/blog/sso-vs-ad

Okta SSO

  • https://www.okta.com/workforce-identity/