2023-03-29-TIL
2023-03-29-TIL
Today I Learned
how to response different by role in spring boot?
- https://stackoverflow.com/questions/62793553/spring-boot-customize-api-response-based-on-the-user-roles
- https://stackoverflow.com/questions/64378312/different-response-based-on-logged-user-role
- https://medium.com/geekculture/role-based-access-control-rbac-with-spring-boot-and-jwt-bc20a8c51c15
API Retry Best Practices
- https://medium.com/capital-one-tech/3-best-practices-for-api-clients-feef9ec97f1a
- https://developers.liveperson.com/retry-policy-recommendations.html
- https://climbtheladder.com/10-api-retry-best-practices/
- https://harish-bhattbhatt.medium.com/best-practices-for-retry-pattern-f29d47cd5117
- https://denalibalser.medium.com/best-practices-for-retry-685bf58de797
- https://javascript.plainenglish.io/rxjs-angular-retrying-sequential-or-parallel-http-requests-a-fixed-number-of-times-and-also-with-a-b445e1560f88
- https://pusher.com/blog/how-to-implement-http-request-retry-policies/#0-introduction
- https://docs.aws.amazon.com/general/latest/gr/api-retries.html
- https://cloud.google.com/storage/docs/retry-strategy
- https://climbtheladder.com/10-api-retry-best-practices/
- https://learn.microsoft.com/en-us/azure/architecture/best-practices/retry-service-specific
- https://harish-bhattbhatt.medium.com/best-practices-for-retry-pattern-f29d47cd5117
- https://developers.liveperson.com/retry-policy-recommendations.html
Y/N vs Boolean
- https://stackoverflow.com/questions/10882454/is-it-bad-to-use-enumy-n-instead-of-a-boolean-field-in-a-mysql-table
Pagination in Spring Boot
- https://www.baeldung.com/rest-api-pagination-in-spring
- https://reflectoring.io/spring-boot-paging/
- https://stackoverflow.com/questions/47087415/how-can-i-use-pageable-in-restcontroller
- https://www.javaguides.net/2021/10/spring-boot-pagination-and-sorting-rest-api.html
- https://www.bezkoder.com/spring-boot-pagination-filter-jpa-pageable/
- https://howtodoinjava.com/spring-boot2/pagination-sorting-example/
- https://springframework.guru/spring-boot-pagination/
- https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/domain/PageRequest.html
Instancio
- https://www.instancio.org/user-guide/#creating-record-and-sealed-classes
@Valid
- https://bamdule.tistory.com/35
- https://reflectoring.io/bean-validation-with-spring-boot/
- https://betterprogramming.pub/custom-validation-in-spring-boot-best-explained-part-1-1105a8c2711
- https://stackoverflow.com/questions/19089649/best-practices-for-validation-depending-on-actions-spring-mvc
- https://medium.com/@techisbeautiful/mastering-data-validation-in-spring-boot-best-practices-and-expert-tips-for-robust-and-secure-ba24dd79bc0a
Spring Mistakes
- https://www.toptal.com/spring/top-10-most-common-spring-framework-mistakes
Mapstruct
- https://medium.com/naver-cloud-platform/%EA%B8%B0%EC%88%A0-%EC%BB%A8%ED%85%90%EC%B8%A0-%EB%AC%B8%EC%9E%90-%EC%95%8C%EB%A6%BC-%EB%B0%9C%EC%86%A1-%EC%84%9C%EB%B9%84%EC%8A%A4-sens%EC%9D%98-mapstruct-%EC%A0%81%EC%9A%A9%EA%B8%B0-8fd2bc2bc33b
- https://github.com/mapstruct/mapstruct
- https://madplay.github.io/post/mapstruct-in-springboot
Spring Cloud AWS
- https://cloud.spring.io/spring-cloud-static/spring-cloud-aws/2.1.0.RELEASE/single/spring-cloud-aws.html
Refresh Token
- https://tecoble.techcourse.co.kr/post/2021-10-20-refresh-token/
- https://tansfil.tistory.com/59
- https://hudi.blog/refresh-token/
- https://velog.io/@park2348190/JWT%EC%97%90%EC%84%9C-Refresh-Token%EC%9D%80-%EC%99%9C-%ED%95%84%EC%9A%94%ED%95%9C%EA%B0%80
- https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/
- https://passage.id/post/how-refresh-tokens-work-a-complete-guide-for-beginners
- https://hudi.blog/refresh-token/
- https://www.rfc-editor.org/rfc/rfc6749.html#section-1.2
- https://auth0.com/docs/secure/tokens/refresh-tokens/refresh-token-rotation
- https://velog.io/@jkijki12/Jwt-Refresh-Token-%EC%A0%81%EC%9A%A9%EA%B8%B0
- https://goodteacher.tistory.com/509
- https://hudi.blog/refresh-token-in-spring-boot-with-redis/
- https://hudi.blog/refresh-token/
- https://llshl.tistory.com/32
- https://inkyu-yoon.github.io/docs/Language/SpringBoot/RefreshToken
JWT Invalidation
- https://stackoverflow.com/questions/21978658/invalidating-json-web-tokens
- https://datatracker.ietf.org/doc/html/rfc9068
OAuth 2.0
- https://www.authlete.com/developers/token_exchange/
This post is licensed under CC BY 4.0 by the author.