Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration API for In memory gateway deduplication persistence #5394

Merged
merged 3 commits into from
Jul 2, 2019

Conversation

ramonsmits
Copy link
Member

LRU based to contraint the number of items. Refactored to also remove an O(n) operation.

@ramonsmits ramonsmits changed the base branch from develop to master June 18, 2019 14:12
@ramonsmits ramonsmits requested a review from SzymonPobiega June 18, 2019 14:17
@ramonsmits ramonsmits requested a review from SzymonPobiega June 19, 2019 07:29
@ramonsmits ramonsmits changed the title WIP: In memory gateway deduplication implementation LRU based In memory gateway deduplication implementation LRU based Jun 19, 2019
@ramonsmits ramonsmits force-pushed the InMemoryGatewayDeduplication-LRU branch from 6b2de96 to c420c54 Compare June 19, 2019 10:59
@ramonsmits ramonsmits changed the base branch from master to develop June 19, 2019 10:59
SzymonPobiega
SzymonPobiega previously approved these changes Jun 19, 2019
@ramonsmits
Copy link
Member Author

Closing in favor for #5397

@ramonsmits ramonsmits closed this Jun 19, 2019
@ramonsmits ramonsmits deleted the InMemoryGatewayDeduplication-LRU branch June 19, 2019 14:29
@ramonsmits ramonsmits restored the InMemoryGatewayDeduplication-LRU branch June 20, 2019 08:51
@ramonsmits ramonsmits changed the title In memory gateway deduplication implementation LRU based WIP: In memory gateway deduplication config API Jun 20, 2019
@ramonsmits
Copy link
Member Author

Awaiting #5397 to be merged first

@ramonsmits ramonsmits reopened this Jun 20, 2019
SzymonPobiega
SzymonPobiega previously approved these changes Jun 21, 2019
@ramonsmits ramonsmits changed the title WIP: In memory gateway deduplication config API In memory gateway deduplication config API Jul 1, 2019
@ramonsmits ramonsmits force-pushed the InMemoryGatewayDeduplication-LRU branch from 1b6490d to 8e943c7 Compare July 1, 2019 07:39
@ramonsmits ramonsmits changed the title In memory gateway deduplication config API Add configuration API for In memory gateway deduplication persistence Jul 1, 2019
@ramonsmits ramonsmits added this to the 7.2.0 milestone Jul 1, 2019
@ramonsmits ramonsmits force-pushed the InMemoryGatewayDeduplication-LRU branch from 8e943c7 to f8b52db Compare July 1, 2019 08:53
@ramonsmits ramonsmits force-pushed the InMemoryGatewayDeduplication-LRU branch from f8b52db to 2d55aa6 Compare July 1, 2019 11:04
@ramonsmits ramonsmits requested a review from timbussmann July 2, 2019 09:19
@ramonsmits ramonsmits self-assigned this Jul 2, 2019
@@ -6,7 +6,8 @@ public class ConfigureEndpointInMemoryPersistence : IConfigureEndpointTestExecut
{
public Task Configure(string endpointName, EndpointConfiguration configuration, RunSettings settings, PublisherMetadata publisherMetadata)
{
configuration.UsePersistence<InMemoryPersistence>();
configuration.UsePersistence<InMemoryPersistence>()
.GatewayDeduplicationCacheSize(100);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless necessary, I'd vote to not "randomly configure" this setting.

@timbussmann timbussmann merged commit 0dfe20b into develop Jul 2, 2019
@timbussmann timbussmann deleted the InMemoryGatewayDeduplication-LRU branch July 2, 2019 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants