본문 바로가기

자습39

Flutter PWA + Firebase (Cloud Messaging) PWA (Progressive Web Apps) 은 네이티브 앱과 같은 사용경험을 제공해주는 웹앱이다.PWA 에서 제공하는 기능 중 가장 궁금했던 기능이 바로 네이티브 앱처럼 Push 알림을 받는것. Google FCM 을 통해서 웹 앱에 알림을 보내는 것을 간단하게 해보자.웹앱에 대해 초보인 경우 Flutter (open-source UI software development kit) 를 사용하면 좋다. 1) Flutter 설치Mac OS 가이드https://docs.flutter.dev/get-started/install/macos/webOS: macOS11 (Big Sur) 이상default shell: zsh개발 Tool: Google Chrome, Git IDE 는 Visual Studio C.. 2025. 4. 12.
AWS ASG lifecycle Hook (remotely run shell command on EC2) https://docs.aws.amazon.com/autoscaling/ec2/userguide/tutorial-lifecycle-hook-lambda.html Tutorial: Configure a lifecycle hook that invokes a Lambda function - Amazon EC2 Auto ScalingTutorial: Configure a lifecycle hook that invokes a Lambda function In this exercise, you create an Amazon EventBridge rule that includes a filter pattern that when matched, invokes an AWS Lambda function as the rul.. 2024. 3. 29.
AWS EC2 X-Ray Enable X-Ray 기본 동작 OverviewApplication 에서 X-Ray SDK 를 활용하여 Trace 하고자 하는 구간을 작성하면, X-Ray SDK는 X-Ray daemon 에 해당 구간 메세지를 전달. X-Ray daemon 은 이를 X-Ray API 에 전달. X-Ray API 는 다른 client 의 Trace 정보도 취합하여 X-Ray console 에서 보여줌X-Ray daemon: https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon-ec2.htmlX-Ray SDK: https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-go.htmlLambda의 경우 자동으로 daemon 이 실행되지만.. 2024. 2. 24.
2023.09.02 학원가 비교 학군지는 결국 학원가가 몰린곳 학원가가 형성되는 이유는 교육열 + 소득 수준 호갱노노가 잘 정리해서 보기 쉽다. 다 같은 학원가인지? 서울 1위 대치동 서울 2위 노원구 목동 경기 1위 평촌 경기 2위 나의 관심지~~ 공덕 그럼 천당밑의 분당? 학원이 펼쳐져 있어서 순위에 나오지 않은건가 보다. 2023. 9. 2.
Go Thread-Safety : sync.Mutex, sync.Map Go 하면 떠오르는 단어 Goroutines 실제로 Go를 구현하다가 뭔가 동시에 해야한다 싶으면 "go" 만 적으면 되니... 얼마나 편한가. Goroutine 관련 자료는 매우 많아서 잘 찾으면 된다. 최근에 궁금한건 Go Server로 들어온 특정 Data를 local file 에 deadlock 없이 잘 Read/Write 하는 방법~ 만약 request handler에서 goroutine을 생성했다면 channel 을 활용하면 될것같은데, 난 단순히 go server에서 알아서 goroutine 생성하여 호출된 handler 에서 뭔가 local file 로 deadlock 없이 작업을 하고 싶었다. 첫번째 접근) thread id 별로 file 을 append mode 로 만들면 되지 않을까?.. 2023. 8. 26.
Spring Native Go + goFiber 로 서버를 개발하다가 올해 Java + Spring Boot 로 서버를 개발하니 서버 실행 시간과 속도, 메모리 사용량에 당황하게 된다. 물론 Spring 이 오랜시간 축적하여 제공하는 다양한 기능과 안정성은 이러한 서버 성능의 단점을 넘어서기때문에 아직도 Spring을 많이 사용하는것이다. Spring에서도 JVM위에서돌아가는 Spring 서버의 성능의 한계를 알았는지 2021.3.11 에 Spring Native Beta를 Release 하게된다. https://spring.io/blog/2021/03/11/announcing-spring-native-beta Announcing Spring Native Beta! Today, after one year and half of w.. 2022. 5. 14.