rework service options #24

Open
opened 2020-10-15 10:38:31 +03:00 by vtolstov · 3 comments
vtolstov commented 2020-10-15 10:38:31 +03:00 (Migrated from github.com)

rework service options struct and methods to get:

  • multiple servers
  • multiple clients
  • multiple brokers
  • multiple stores

so service acts as container for primitives

rework service options struct and methods to get: * multiple servers * multiple clients * multiple brokers * multiple stores so service acts as container for primitives
vtolstov commented 2020-12-01 23:01:40 +03:00 (Migrated from github.com)

how to deal with top level options in micro like micro.Address or micro.Broker ?
as we can have multiple brokers that will be used for specific client and server we need to configure each client and server individually not via single micro.Broker option

how to deal with top level options in micro like micro.Address or micro.Broker ? as we can have multiple brokers that will be used for specific client and server we need to configure each client and server individually not via single micro.Broker option
vtolstov commented 2020-12-02 12:08:10 +03:00 (Migrated from github.com)

Broker/Registry/Address options will be changed to following signature
func Broker(id string, b broker.Broker) (Option, error)

all Option will be changed to func(xxx) (Option, error) to allow validation

Broker/Registry/Address options will be changed to following signature func Broker(id string, b broker.Broker) (Option, error) all Option will be changed to func(xxx) (Option, error) to allow validation
vtolstov commented 2021-01-15 00:26:45 +03:00 (Migrated from github.com)

extend server/client/broker/registry with ID() method that returns configured id
also options must have ID string field.
So when you want to publish you can call svc.Client(ID).Publish(xxx, client.PublishBroker(ID))
or subscribe
svc.Server(ID).Subscrbe(xxx, server.SubscribeBroker(ID))

extend server/client/broker/registry with ID() method that returns configured id also options must have ID string field. So when you want to publish you can call svc.Client(ID).Publish(xxx, client.PublishBroker(ID)) or subscribe svc.Server(ID).Subscrbe(xxx, server.SubscribeBroker(ID))
vtolstov reopened this issue 2023-03-26 21:17:31 +03:00
vtolstov added the
Kind/Feature
label 2023-04-02 03:01:18 +03:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: unistack-org/micro-roadmap#24
No description provided.