commercetools / commercetools/rmf-codegen

Best practice 2 Evaluate dataloader

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
16
Forks
7
Avg merge
1d 3h
Merged PRs (30d)
3

Description

Lets suppose the following use case, the user makes a request to product with id=1, 5 times in 50ms, and that the request takes 100ms. in this case we end-up with 5 requests to the same resource which add useless load on CTP.

In order to solve this problem, we can use [dataloader](https://github.com/graphql-java/java-dataloader) which would allow us to use only 1 platform request to resolve all the pending calls.

linked to https://github.com/commercetools/rmf-codegen/issues/192

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.