πŸ’»
Albert's Til
GitHub
  • 맀일맀일 μ‘°κΈˆμ”© μ„±μž₯ν•˜κΈ°
    • README
    • CS
      • Network
      • HTTP
        • NO-CACHE
      • 였λ₯˜ μ½”λ“œ
      • ORM 도ꡬ
      • Design Pattern
        • CQRS Pattern
          • Event Sourcing and CQRS pattern
        • Builder Pattern
    • DB
      • MySQL
        • Timeline
        • Pagination
        • Index
        • Database Performance Optimization Strategies
        • B+ tree
        • MySQL Connectors VS MySQL Shell(Scripting) VS MySQL Workbench
        • MySQL Storage Engine Architecture
      • Normalization & Denormalization
      • JPA
        • @Transactional
        • Why JPA?
        • About JPA
        • N+1 Issue
        • Index
        • ElementCollection&CollectionTable
        • orphanRemoval
        • CascadeType
        • Use Subselect
        • Dynamic Instance Creation
        • Paging
        • Order
        • Spefication
        • mappedBy
      • MongoDB
        • ObjectId
      • Why MySQL?
      • ACID properties of transactions
      • Between JPA and JDBC
      • Identifiers in Hibernate/JPA
    • Java
      • Jackson de/serialize
      • Collections.singletonList() vs List.of()
      • Manage dependencies in Gradle
      • Logging Level
      • Bean Validation
      • JVM Internals
        • Threads
          • Frame
        • Shared Between Threads
          • Classloader
            • Class Loader Hierarchy
            • Loading Linking Initialization
      • Java Collection Framework
      • Annotation
      • Generic
      • λ””λ―Έν„° 법칙
    • Spring
      • Caching
      • Spring Integration Overview
        • ThreadPollTaskExecutor
        • Messaging Bridge
        • Channel Adapter
        • Poller
        • Configuration and @EnableIntegration
        • Message Endpoints
        • Message Channels
      • HATEOAS
      • @Autowired vs Constructor Dependency Injection
      • Spring Security
        • JWT 토큰 μ‚¬μš©ν•œ 인가
        • OAuth 2 Login
        • OAuth 2 인증
        • 인가
        • 인증
        • PasswordEncoder
      • IoC Container
      • Filter,Interceptor,AOP,Argument Resolver
      • Spring Annotation
      • About Spring
    • Kafka
      • Error Channel
    • Infra
      • Scale Up || Scale Out
      • Docker
        • Dockerfile
        • Docker Hub Deploy
        • Command
      • Cloud μœ ν˜•
        • Infrastructure as a Service
        • Platform as a Service
        • Software as a Service
      • 무쀑단 배포
        • μ—”μ§„μ—‘μŠ€(Nginx)
      • μ½”λ“œ μžλ™ 배포
        • Technical
      • AWS EC2
        • PEM(Privacy Enhanced Mail) ν‚€
      • AWS RDS
      • AWS S3
    • CodeSquad
      • Spring Boot Project 1μ£Όμ°¨ 회고
      • Spring Boot Project 2μ£Όμ°¨ 회고
      • Spirng Boot Project 3μ£Όμ°¨ 회고
      • Spring Boot Project 4μ£Όμ°¨ 회고
    • Foody Moody ν”„λ‘œμ νŠΈ
      • Query Performance Comparison
      • HeartCount Asynchronous Issue
      • DeferredResult
      • ResponseBodyEmitter
      • SseEmitter (Spring)
      • Server-Sent Events (SSE)
      • 기술 μŠ€νƒ 적용 이유
      • NO-CACHE(HTTP)
      • Transactional
    • DDD
      • AggregateId
    • Test
      • RestAssured
    • Coding and Algorithmic Problems
      • 819. Most Common Word
      • 344. Reverse String
      • 125. Valid Palindrome
      • 937. Reorder Data in Log Files
    • Node
      • Async... Await...
      • Custom Transactional Decorator Challenger
    • Python
      • Python Basic Grammar
        • Comments and Input/Output
        • Variable
        • Data type
        • Operations and syntax
        • List,Tuple,Dictionary,Set
        • Function
        • Conditional statement
        • Loop
    • HTML
      • HTML Basic
      • HTML Basic Tags
      • HTML Form Tags
      • HTML Table Tags
    • CSS
      • CSS Basic
      • CSS Practice
Powered by GitBook
On this page
  • 폴링(polling) 기법(Travis)
  • μ›Ήν›…(Webhook) 기법(Jenkins)

Was this helpful?

  1. 맀일맀일 μ‘°κΈˆμ”© μ„±μž₯ν•˜κΈ°
  2. Infra
  3. μ½”λ“œ μžλ™ 배포

Technical

폴링(polling) 기법(Travis)

  1. 주기적인 쑰회:

    폴링은 μΌμ •ν•œ 주기둜 λŒ€μƒ μ‹œμŠ€ν…œμ΄λ‚˜ μž₯치λ₯Ό μ‘°νšŒν•©λ‹ˆλ‹€. 이λ₯Ό μœ„ν•΄ 주기적으둜 λ°˜λ³΅λ¬Έμ„ μ‚¬μš©ν•˜μ—¬ 쑰회 μž‘μ—…μ„ μˆ˜ν–‰ν•©λ‹ˆλ‹€.

  2. μƒνƒœ 확인:

    쑰회된 λŒ€μƒ μ‹œμŠ€ν…œμ΄λ‚˜ μž₯치의 μƒνƒœλ‚˜ 정보λ₯Ό ν™•μΈν•©λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄, λ„€νŠΈμ›Œν¬ μž₯치의 μ—°κ²° μƒνƒœ, μ„Όμ„œμ˜ μΈ‘μ •κ°’, λ°μ΄ν„°λ² μ΄μŠ€μ˜ μ—…λ°μ΄νŠΈ μ—¬λΆ€ 등을 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

  3. 응닡 처리:

    μƒνƒœλ‚˜ 정보λ₯Ό ν™•μΈν•œ ν›„, 이에 따라 μ μ ˆν•œ 쑰치λ₯Ό μ·¨ν•˜κ±°λ‚˜ 응닡을 μ²˜λ¦¬ν•©λ‹ˆλ‹€. μ΄λŠ” ν”„λ‘œκ·Έλž¨μ—μ„œ ν•„μš”ν•œ μž‘μ—…μ„ μˆ˜ν–‰ν•˜κ±°λ‚˜ κ²°κ³Όλ₯Ό λ³΄κ³ ν•˜λŠ” λ“±μ˜ λ™μž‘μ„ μ˜λ―Έν•©λ‹ˆλ‹€.

μ›Ήν›…(Webhook) 기법(Jenkins)

  1. μ›Ήν›… 등둝:

    μ›Ή μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ—μ„œ CI/CD λ„κ΅¬λ‚˜ μ½”λ“œ μ €μž₯μ†Œμ— λŒ€ν•œ 웹훅을 λ“±λ‘ν•©λ‹ˆλ‹€. 이λ₯Ό 톡해 이벀트 λ°œμƒ μ‹œ μ›Ή μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ μ•Œλ¦Όμ„ 받을 수 μžˆμŠ΅λ‹ˆλ‹€.

  2. 이벀트 λ°œμƒ:

    λ³€κ²½ μ‚¬ν•­μ΄λ‚˜ νŠΉμ • μ΄λ²€νŠΈκ°€ λ°œμƒν•˜λ©΄, CI/CD λ„κ΅¬λ‚˜ μ½”λ“œ μ €μž₯μ†ŒλŠ” 웹훅에 λ“±λ‘λœ URL둜 HTTP POST μš”μ²­μ„ λ³΄λƒ…λ‹ˆλ‹€.

  3. μ›Ή μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 처리:

    μ›Ή μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ€ ν•΄λ‹Ή μš”μ²­μ„ 받아듀이고 ν•„μš”ν•œ μž‘μ—…μ„ μˆ˜ν–‰ν•©λ‹ˆλ‹€. 이 μž‘μ—…μ€ CI/CD νŒŒμ΄ν”„λΌμΈμ„ νŠΈλ¦¬κ±°ν•˜μ—¬ μžλ™ν™”λœ λΉŒλ“œ, ν…ŒμŠ€νŠΈ, 배포 λ“±μ˜ μž‘μ—…μ„ μ‹€ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

  4. 응닡 전솑:

    μ›Ή μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ€ μž‘μ—… 처리 κ²°κ³Όλ₯Ό CI/CD λ„κ΅¬λ‚˜ μ½”λ“œ μ €μž₯μ†Œλ‘œ μ‘λ‹΅ν•©λ‹ˆλ‹€. 이λ₯Ό 톡해 CI/CD νŒŒμ΄ν”„λΌμΈμ€ μƒνƒœλ₯Ό κ°±μ‹ ν•˜κ³  μ μ ˆν•œ 쑰치λ₯Ό μ·¨ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Last updated 1 year ago

Was this helpful?