Skip to content

Add support for Await() and Restructure Client#9

Merged
robshakir merged 10 commits intomainfrom
fluent-4
Jun 7, 2021
Merged

Add support for Await() and Restructure Client#9
robshakir merged 10 commits intomainfrom
fluent-4

Conversation

@robshakir
Copy link
Copy Markdown
Member

- Add TODOs for pending implementation items.
- Restructure client queues to store more context.
- Align fluent API for connections with design document.
- Working commit.
- Refactoring queueing in client.

This PR creates an initial Await() implementation in the fluent library, and restructures the queues in the client to allow for pending transactiosn to be tracked even when they are not AFTOperations.

robshakir added 10 commits June 2, 2021 11:10
  * (M) client/client.go
    - TODOs for implementation details that are pending.
  * (M) client/client.go
    -  add handling for receiving messages from a client into
       restructured pending and result queues that include more
       info including the timestamp and result codes.
  * (M) client/client_test.go
    - add test coverage for all non-integration parts.
  * (M) fluent/fluent.go
    - Since the client connection parameters might be across
      different RPCs, restructure the fluent client (per the design
      doc) to encapsulate the connection parameters.
  * (M) fluent/fluent_test.go
    - Update existing tests to correspond to absorb the changes
      described above.
  * (M) client/client.go
  * (M) client/client_test.go
    - Restructure pneding queues to be able to store the type of
       transaction that is pending, not just operations - such that
       it is possible to track latency of other operations and ensure
       that the client is aware that is has pending non-operations
       requests.
    - Add a converged method to check whether there are any pending
      requests from the server in the client.
  * (M) fluent/fluent.go
  * (M) fluent/fluent_test.go
    - Add initial Await() implementation.
@robshakir robshakir changed the base branch from main to fluent-3 June 5, 2021 02:48
@robshakir robshakir changed the title [Depends on dd0/fluent-3] Add support for Await() and Restructure Client [Depends: PR#7 && PR#8] Add support for Await() and Restructure Client Jun 5, 2021
@robshakir robshakir requested a review from sthesayi June 5, 2021 16:36
@robshakir robshakir changed the base branch from fluent-3 to main June 7, 2021 15:49
@robshakir robshakir changed the title [Depends: PR#7 && PR#8] Add support for Await() and Restructure Client Add support for Await() and Restructure Client Jun 7, 2021
@robshakir robshakir merged commit ab0d898 into main Jun 7, 2021
@robshakir robshakir deleted the fluent-4 branch June 7, 2021 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants