art of hacking push, notifacation
DESCRIPTION
Art of Hacking Push Notifacation 안드로이드 구현에 대한 이야기. 몇 만에서 백만 개 단위의 알림을 발송할 때의 솔루션을 이야기합니다.TRANSCRIPT
![Page 1: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/1.jpg)
- Push와 Android 단편화 -
Dennis Kim 2013. 12. 11
![Page 2: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/2.jpg)
WHO AM I?
• 드래곤볼 온라인 보안
• Sega Universe at war
• 붉은 보석 - 보안
• 남미 포털 보안
• 필리핀 포털 보안
• 툼레이더 온라인 / 툼레이더 애니버서리
• 라이브 플렉스 개발 이사
• 기타 재미있는 일
![Page 3: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/3.jpg)
Push는 믿어도 될까?
![Page 4: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/4.jpg)
왜 응답하지 않을까요?
![Page 5: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/5.jpg)
진실 혹은 거짓
Push / notification은 단지 요청일 뿐이다!
안드로이드 기기 제조사 마다
통신사마다
미묘하게 동작이 다르고 도달되지 않을 수 있다
![Page 6: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/6.jpg)
WHY
안드로이드구조상
대량 푸시 메시지는 씹힐 수 있다!
![Page 7: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/7.jpg)
질문
![Page 8: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/8.jpg)
PUSH / Notification
도달율은?
![Page 9: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/9.jpg)
국가 별로 달라요…
멘붕!
![Page 10: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/10.jpg)
다시 질문
한국VS
미국VS
일본VS
중국
![Page 11: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/11.jpg)
China ?
![Page 12: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/12.jpg)
비표준과다양한기기
안드로이드 개변조가 심함심지어 독자 notification기기
특이한 //악성 코드 형태, 경쟁사 푸시 날림
푸시 스팸 앱 존재
![Page 13: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/13.jpg)
비정상 장애 기기
PUSH / Notification 도달율
미국 < 일본 <= 한국 <<<<< 중국
1백만건 발송 기준
![Page 14: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/14.jpg)
푸시 도달 체크 루틴을 넣어라
• 최소 주단위로 로그를 서버로
• 처음 설치 때 푸시가 들어가는지
확인하게 만들어라
‘문자’발송은 그럼?
![Page 15: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/15.jpg)
여기서 결론
메시지 발송 솔루션과 지역도
'파레토'의 80/20 법칙은 통한다!
![Page 16: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/16.jpg)
Think Hacker's way
![Page 17: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/17.jpg)
해결 방안
초기 설치 체크
로그를 통한 에러기기 확인
이중화된 메시지 에러 처리
(……………………………) (나름 비급)
![Page 18: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/18.jpg)
#CASE STUDY 1
유저 50만명
동남아 서비스
크랙 유저 2천만 + @
![Page 19: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/19.jpg)
FAIL
크랙 유저도 발송되는 친절한 알람
푸시 서버 개발 운영에 지장
![Page 20: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/20.jpg)
Solution
비정상 유저 거르는 루틴 추가 (비급)
결론은
상용 솔루션 알람 사용(윈도우 애저 & PUSH.IO)
![Page 21: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/21.jpg)
#CASE STUDY 2
푸시 도달율 50~60% 내외
유저는 25만명
자바로 구현된 느릿한 푸시 서버
일본 게임 회사
![Page 22: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/22.jpg)
FAIL
푸시가 날아가면 스케줄러로 쓰이는 my-sql이
정신줄을 놓고 사망
어디까지 발송되었는지 아무도 몰라
![Page 23: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/23.jpg)
Solution
잘 해결.
궁금하면 500원!
![Page 24: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/24.jpg)
10,000 user over – 독자 구현보다 솔루션
독자 구현은 개발자의 로망. 메신저는 네트워크 프로그래머의
첫 사랑이지만 대량 유저용 메신저가 힘들 듯 난이도 끝판왕
Tech Trend
![Page 25: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/25.jpg)
어느 솔루션이 좋나?
![Page 26: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/26.jpg)
윈도우 애저 notification Hub
VS
PUSH.IO
![Page 27: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/27.jpg)
Amazon Notification
VS
AD fresca Push Notification
![Page 28: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/28.jpg)
정답은?
오프라인에서 알려드립니다!
![Page 29: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/29.jpg)
감사합니다!
![Page 30: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/30.jpg)
하나 더 !
![Page 31: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/31.jpg)
공짜라면 양잿물 마시는 사람을 위한
간단한 테크닉
![Page 32: Art of hacking Push, Notifacation](https://reader033.vdocuments.mx/reader033/viewer/2022060118/5588f6cad8b42ab4418b462c/html5/thumbnails/32.jpg)
무림 비급