Giter Club home page Giter Club logo

Comments (4)

huijeong-kim avatar huijeong-kim commented on June 6, 2024 2

SystemService가 broker가 될 수 있을 것 같아 보니,
actix-broker의 SystemBroker가 SystemService로 구현된 거였네요! ㅎㅎ

from yyu-nim.github.io.

yyu-nim avatar yyu-nim commented on June 6, 2024 2
<ActorType>::from_registry()

을 호출하면, 명시적으로 start()를 해주지 않아도 actor가 시작되는 것 같습니다. https://github.com/actix/actix/blob/master/actix/src/registry.rs#L259 에 의하면 start_service() 내에서 supervisor에 의해 자동 시작되는 것으로 이해하고 있습니다 ㅎ

생성할 수 있는 서비스 개수에 대해서는 타입당 하나인 것인것 같아요. https://github.com/actix/actix/blob/master/actix/src/registry.rs#L253에 의하면, ActorType으로 registry를 찾아봐서 없으면 생성후 서비스를 시작, 만약 이미 있었으면 그 주소를 바로 리턴해주는 것 같습니다. 가령, Service1::from_registry(), Service2::from_registry(), ..., 이런식으로 서비스를 여러개 등록할 수 있는 것 같습니다.

actix-broker 구현 방법도 한번 살펴봐야 겠네요! SystemService의 사용방법을 더 깊이 이해할 수 있을 것 같습니다 ㅎ

from yyu-nim.github.io.

huijeong-kim avatar huijeong-kim commented on June 6, 2024 1

와~ 이제 댓글 달 수 있네요!! 😆👏

SystemService 는 명시적으로 start를 안 해 줘도 시작하는 걸까요 ?.? System 시작할 때 같이 시작하는 것 같은 느낌이네요
그리고 이름에서 주는 느낌 처럼 System 당 하나의 SystemService만 만들 수 있는 거겠죠..?

from yyu-nim.github.io.

huijeong-kim avatar huijeong-kim commented on June 6, 2024 1

아하!! from_registry가 service 별로 있는거군요! 요 부분을 착각했었네요 ㅎㅎ

from yyu-nim.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.