What I built
Hillstate / THE H resident life-support requests, bookings, assignments. Full helper domain, RFC 5545 rrule, Android WebView SSO. Feign for auth/file MSA; Swagger docs. 3–4+ daily requests per site after launch.
Key work
- End-to-end helper digitisation
- ~60% less admin manual work
- SERIALIZABLE numbering
- concurrent applications serialised, no duplicate IDs
- PESSIMISTIC_WRITE
- block over-capacity races
- RFC 5545 rrule
- daily/weekly/monthly/yearly, Korean summaries, seat preview
- Feign MSA + Swagger API documentation
- SSO cookie injection
- WebView unified with community
- 3–4+ daily requests per site post-launch, growing adoption
Code
// 슬롯 비관적 잠금 → 순차 수용인원 검증 → Race Condition 차단@Transactionalpublic void applyForService(ApplyRequestDto dto) {ServiceSlot slot = slotRepo.findByIdWithLock(dto.getSlotId());if (applyRepo.countBySlotAndDateTime(...) >= slot.getMaxCapacity())throw new BusinessException(CAPACITY_EXCEEDED);applyRepo.save(Application.of(dto));}// Repository — 잠금 쿼리@Lock(LockModeType.PESSIMISTIC_WRITE)@Query("SELECT s FROM ServiceSlot s WHERE s.id = :id")ServiceSlot findByIdWithLock(@Param("id") String id);