Provide higher-level client and make a pool an aggregation of them #34

Open
opened 2023-03-08 23:37:52 +00:00 by snegurochka · 0 comments
Member

Original issue: https://github.com/nspcc-dev/neofs-sdk-go/issues/380

Currently pools solve several problems at once:

  • hide a set of clients behind one pool instance and balance requests between them
  • provide higher-level API

Granted, in some ways pool code had to do the second just to use the same client for a set of related operations, so pools can't provide raw client.Client interface (at least not in a usable way). But at the same time this API simplifies some operations and regular single-client users might benefit from it as well (see #345 also, it's related to building a higher-level client).

So the proposal here is to add some higher-level client that will provide some pool-alike (+ #345) interface and then make pool be just an aggregation of these clients (with the same interface).

Original issue: https://github.com/nspcc-dev/neofs-sdk-go/issues/380 Currently pools solve several problems at once: * hide a set of clients behind one pool instance and balance requests between them * provide higher-level API Granted, in some ways pool code had to do the second just to use the same client for a set of related operations, so pools can't provide raw `client.Client` interface (at least not in a usable way). But at the same time this API simplifies some operations and regular single-client users might benefit from it as well (see #345 also, it's related to building a higher-level client). So the proposal here is to add some higher-level client that will provide some pool-alike (+ #345) interface and then make pool be just an aggregation of these clients (with the same interface).
fyrchik added the
pool
label 2023-05-02 07:57:12 +00:00
alexvanin self-assigned this 2023-06-01 06:52:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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: TrueCloudLab/frostfs-sdk-go#34
No description provided.