-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): document that there is a cache now #137
- Loading branch information
1 parent
17ff89c
commit 88906a4
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
import { getLapisUrl } from '../lapisUrl'; | ||
const link = getLapisUrl() + '/actuator/metrics/cache.size'; | ||
--- | ||
|
||
<a href={link} target='_blank'>{link}</a> |
17 changes: 17 additions & 0 deletions
17
lapis2-docs/src/content/docs/maintainer-docs/concepts/caching.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Caching | ||
description: LAPIS' caching concept | ||
--- | ||
|
||
import CacheSizeEndpointLink from '../../../../components/CacheSizeEndpointLink.astro'; | ||
|
||
LAPIS uses Spring Boot's caching capabilities to cache insertion and mutation queries. | ||
We decided to cache SILO actions that are relatively expensive to compute, | ||
but don't return much data (measured in size of the response body). | ||
|
||
At the time of writing, we think that aggregated queries are fast enough to not require caching. | ||
Details and FASTA actions are more expensive, but return potentially large amounts of data. | ||
|
||
LAPIS offers an endpoint to check the current cache size (in number of cached entries) at `/actuator/metrics/cache.size`: | ||
|
||
<CacheSizeEndpointLink /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters