목상치
728x90

'전체 글'에 해당되는 글 120건

  1. 2021.03.03 스프링부트
  2. 2020.09.06 Command_Line_Interface
  3. 2020.09.06 [LinkedinLearning]Learn Apache Kafka for Beginners 3
목하치
반응형
728x90

스프링부트는 "just run". 하기 위한. 즉, 스프링프레임워크 기반 자바 엔터프라이즈 프로그래밍을 쉽게 할 수 있도록 자동으로 기반을 구축해주는 개발 방식 또는 플랫폼

엔터프라이즈 애플리케이션 이란
엔터프라이즈 애플리케이션은 이름 그대로 기업형 프로그램으로 자바에서는 JavaEE (Java Enterprise Edition)을 통해 개발되었다.
JaveEE 는 JavaSE(Java Standard Edition)에 서버측 개발을 위한 기능이 더해진 자바 버전이라고 보면 된다.
스프링은 이런 JaveEE를 대체하기 위해 개발되었기 때문에 엔터프라이즈 애플리케이션 개발을 위한 플랫폼이라고 설명한다.

출처: https://noahlogs.tistory.com/46 [인생의 로그캣]

spring.io/projects/spring-boot

 

Spring Boot

Get support Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription. Learn more

spring.io

Features

  • Create stand-alone Spring applications

  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)

  • Provide opinionated 'starter' dependencies to simplify your build configuration

  • Automatically configure Spring and 3rd party libraries whenever possible

  • Provide production-ready features such as metrics, health checks, and externalized configuration

  • Absolutely no code generation and no requirement for XML configuration

1. 웹 에플리케이션 구조 잡는데 하루 이틀이 걸리는 단점을 부트를 쓰면 손쉽게 사용이 가능

2. 기본설정에서 요구사항에 따라 다양하게 개발 가능

3. 프로젝트의 모니터링 헬스체크 등 더 많이 제공

4. 코드 제너레이션 사용하는게 아니다. xml 환경설정이 필요 없다.

도통 모르겠다 그런데 유사 스터디를 찾았다. 

brunch.co.kr/@springboot/530

 

스프링부트 백엔드 프로그래밍 (1)

1주차 1교시 - 스프링부트란 무엇인가? | "스프링부트 백엔드 프로그래밍"이라는 주제로 약 8주간 글을 작성할 예정입니다. 제가 잘못된 길로 가지 않도록, 댓글로 의견 및 조언 부탁드립니다. 1

brunch.co.kr

 



출처: https://yoo-hyeok.tistory.com/117 [유혁의 엉터리 개발]

728x90
Posted by 댕기사랑
,
728x90

* * * PDF의 연습파일이라고 올려줬는데 html태그이다. 어쩔수 없이 여기에

Note to Windows users

WINDOWS USERS PLEASE READ

In the next lecture, do not run the command to DELETE topics

Because of a bug here: https://issues.apache.org/jira/browse/KAFKA1194, it doesn't work. I'm actively working with the Kafka Dev team to see if I can get this fixed.

In the meantime, please do not delete topics. Otherwise your Kafka will crash and you won't be able to do the tutorial.

A workaround is to launch Kafka inside of a Linux VM and do the tutorial from there.

Thanks

Commonly Used CLI options

The CLI have many options, but here are the other that are most commonly used:

Producer with keys

kafka-consoleproducer --broker-list 127.0.0.1:9092 --topic first_topic --property
parse.key=true --property key.separator=,
> key,value
> another key,another value

Consumer with keys

kafka-consoleconsumer --bootstrap-server 127.0.0.1:9092 --topic first_topic --frombeginning --property print.key=true --property
key.separator=,

 

Kafka UI

Kafka does not come bundled with a UI, but here are some recommendations

  • Kafka Manager (for managing Kafka and instead of using CLI): https://github.com/yahoo/kafkamanager

  • Kafka Tools (will be explore in the next lecture)

  • You may find other UIs on the internet

Overall in this course, we perform all the actions without any UI, which is good for learning how to properly use the CLI

KafkaCat

KafkaCat (https://github.com/edenhill/kafkacat) is an open-source alternative to using the Kafka CLI, created by Magnus Edenhill.

While KafkaCat is not used in this course, if you have any interest in trying it out, I recommend reading: https://medium.com/@coderunner/debugging-with-kafkacatdf7851d21968

Happy learning!

728x90
Posted by 댕기사랑
,
728x90

이전글 : [LinkedinLearning]Learn Apache Kafka for Beginners 2.1

원강의-[LinkedinLearning]Learn Apache Kafka for Beginners 바로가기

www.linkedin.com/learning/learn-apache-kafka-for-beginners/kafka-topics-cli?u=2101921

 

3. Commnad Line Interface(CLI)

    • Kafka topics CLI

      카프카 토픽을 생성한다. 토픽 이름, 파티션, 리플리케이터옵션을 정하고 실행한다.


      생성된 토픽을 list옵션으로 확인할 수 있고 세부 내용(describe)을 확인할수 있다.

      두번째 토픽을 만들어보고 확인하고 삭제해보자(원도우는 삭제되지 않는 버그가 있다고 한다.)
      카프카가 사망한다. 

    • Kafka console producer CLI


      파일
      참고


      gh

    • Kafka console producer CLI


      파일
      참고


      gh

아파치
카프카
다운받아
설치 받는
것인데요.  http://kafka.apache.org/ 설치하고 패스 추가하는 것 잊지말자

  • >macOS: Using Brew

    Brew로 설치하면 되는것인데요. 아까 다운 받은 것중 맥용 설치 시작 http://kafka.apache.org/ 설치하고

 

 

 

 

다음글 : [LinkedinLearning]Learn Apache Kafka for Beginners

 

(00:05) 프로듀서 생성 Edit | Delete Export your notes Get your notes for this course which includes description, chapters, and timestamps

728x90
Posted by 댕기사랑
,