Comments (4)
SystemService가 broker가 될 수 있을 것 같아 보니,
actix-broker의 SystemBroker가 SystemService로 구현된 거였네요! ㅎㅎ
from yyu-nim.github.io.
<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.
와~ 이제 댓글 달 수 있네요!! 😆👏
SystemService 는 명시적으로 start를 안 해 줘도 시작하는 걸까요 ?.? System 시작할 때 같이 시작하는 것 같은 느낌이네요
그리고 이름에서 주는 느낌 처럼 System 당 하나의 SystemService만 만들 수 있는 거겠죠..?
from yyu-nim.github.io.
아하!! from_registry가 service 별로 있는거군요! 요 부분을 착각했었네요 ㅎㅎ
from yyu-nim.github.io.
Related Issues (20)
- Installing on mac m1
- Load error: cannot load such file HOT 1
- https://yyu-nim.github.io/actix/rust/recipient/actor/2022/07/31/actix-recipient-usage.html HOT 5
- https://yyu-nim.github.io/crossbeam/rust/2022/07/21/crossbeam-workstealing-2.html HOT 3
- https://yyu-nim.github.io/actix/rust/actor/weak/address/2022/08/14/actix-weak-address.html HOT 2
- https://yyu-nim.github.io/actix/rust/crossbeam/coordination/2022/08/14/crossbeam-waitgroup.html HOT 1
- https://yyu-nim.github.io/actix/rust/crossbeam/shardedlock/2022/08/15/crossbeam-shardedlock.html HOT 1
- https://yyu-nim.github.io/rust/crossbeam/mpmc/channel/k8s/2022/08/18/crossbeam-mpmc-channel.html HOT 1
- https://yyu-nim.github.io/rust/crossbeam/concurrent/queue/2022/08/21/crossbeam-queue.html HOT 3
- https://yyu-nim.github.io/rust/dashmap/concurrent/hashmap/2022/08/28/dashmap-counters.html HOT 1
- https://yyu-nim.github.io/rust/lazy_static/event/crossbeam/2022/09/23/crossbeam-event-channel.html HOT 2
- https://yyu-nim.github.io/rust/lazy_static/async_once/2022/09/25/lazy-static-async-init.html HOT 1
- https://yyu-nim.github.io/rust/diesel/facebook/tectonic/2022/10/03/diesel-mini-tectonic-1.html HOT 1
- https://yyu-nim.github.io/rust/diesel/facebook/tectonic/metadata/name/2022/10/09/diesel-mini-tectonic-2.html HOT 1
- https://yyu-nim.github.io/rust/lldb/debugging/2022/12/04/lldb-programmatic-debugging.html HOT 3
- https://yyu-nim.github.io/rust/nvmf/chatgpt/2023/03/18/nvmf-1-intro.html HOT 1
- https://yyu-nim.github.io/rust/nvmf/chatgpt/read/write/command/2023/03/21/nvmf-3-readwrite.html HOT 2
- https://yyu-nim.github.io/rust/crossbeam/chatgpt/nvmf/k8s/manifest/2023/03/26/nvmf-7-k8s-manifest.html HOT 1
- https://yyu-nim.github.io/rust/crossbeam/chatgpt/parker/tcp/2023/03/25/crossbeam-parker-tcp-chatgpt.html HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yyu-nim.github.io.