MinthugLife

MinthugLife

  • 분류 전체보기 (11)
    • Java (9)
    • CS (0)
    • TroublesShooting (1)
  • 홈
  • 태그
  • Java
RSS 피드
로그인
로그아웃 글쓰기 관리

MinthugLife

컨텐츠 검색

태그

jwt SSE 오블완 티스토리챌린지 oauth2 API restful java kafka

최근글

댓글

공지사항

아카이브

SSE(1)

  • SSE(Server-Sent Events)

    SSE 개념서버 -> 클라이언트 단방향 실시간 통신WebSocket과 달리 서버에서 클라이언트로만 데이터를 보냄HTTP 프로토콜 사용으로 별도 프로토콜 필요 없음자동 재접속 지원Repository 구조Key-Value 구조Key(String): "memberId_timeStamp" // 예: "123_1698985544"Value: SseEmitter 객체public interface EmitterRepository { void save(String emitterId, SseEmitter sseEmitter); void deleteById(String emitterId); Map findAllByIdStartWith(Long memberId);}@Repositorypublic class..

    2024.11.06
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바