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

Refactor CacheManager, Working Async #591

Merged
merged 3 commits into from
Apr 3, 2023
Merged

Conversation

zachgk
Copy link
Contributor

@zachgk zachgk commented Mar 30, 2023

Splits the CacheManager into a CacheEngine interface along with a manager to manage a global cache. This then modifies the CacheEngine to also include a few additional pieces. It has a way to create a cache key before needing to store it which is used by the async and streaming sections. There is also some tentative features for multiTenant online caches.

It also modifies the InferenceRequestHandler's handling of async. Before, it wasn't actually asynchronous as it had to wait for the result to send the response. This sends the response before the computation is started.

Additionally, this PR also contains some changes adding a config to the Workflow system.

Splits the CacheManager into a CacheEngine interface along with a manager to
manage a global cache. This then modifies the CacheEngine to also include a few
additional pieces. It has a way to create a cache key before needing to store it
which is used by the async and streaming sections. There is also some tentative
features for multiTenant online caches.

It also modifies the InferenceRequestHandler's handling of async. Before, it
wasn't actually asynchronous as it had to wait for the result to send the
response. This sends the response before the computation is started.

Additionally, this PR also contains some changes adding a config to the Workflow
system.
@zachgk zachgk requested review from frankfliu and a team as code owners March 30, 2023 17:29
*/
public static CacheManager getInstance() {
public static CacheEngine getInstance() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public static CacheEngine getInstance() {
public static CacheEngine getCacheEngine() {

*/
public static void setCacheManager(CacheManager instance) {
public static void setCacheManager(CacheEngine instance) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public static void setCacheManager(CacheEngine instance) {
public static void setCacheEngine(CacheEngine instance) {

@zachgk zachgk merged commit 64b2835 into deepjavalibrary:master Apr 3, 2023
@zachgk zachgk deleted the cache2 branch April 3, 2023 18:09
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