Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor(cache): remove service from name * refactor(cacheservice): inmem (ongoing) * refactor(cacheservice): inmem (ongoing) * chore(docs): add structurizr (c4) * refactor(cache): inmem get user * refactor(cacheservice): in-mem version * refactor(cacheservice): redis version (ongoing) * refactor(cacheservice): add zio-config (ongoing) * refactor(cacheservice): redis implementation (ongoing) * refactor(cacheservice): redis implementation (ongoing) * refactor(cacheservice): redis implementation (ongoing) * refactor(cacheservice): add redis implementation * refactor(cacheservice): add redis serialization implementation (ongoing) * refactor: after spartan session (ongoing) * refactor(cacheservice): remove actor * refactor(cacheservice): fix tests (ongoing) * build: fix after merge * refactor(cacheservice): fix tests * refactor(cacheservice): add Redis Testcontainers layer * refactor(cacheservice): moving runtime initialization to main * refactor(cacheservice): moving runtime initialisation back where it was * docs: add ADR record * chore(deps): bump zio libraries * chore(deps): bump zio libraries * chore(deps): bump zio libraries * chore: remove unneeded file * refactor(cacheservice): ziofy redis testcontainers * cleanup * fix redis test container * fix redis test container * remove metrics logging * Update webapi/src/main/scala/org/knora/webapi/store/cacheservice/CacheServiceManager.scala Co-authored-by: irinaschubert <irina.schubert@dasch.swiss> * Update webapi/src/main/scala/org/knora/webapi/store/cacheservice/CacheServiceManager.scala Co-authored-by: irinaschubert <irina.schubert@dasch.swiss> * Update webapi/src/main/scala/org/knora/webapi/store/cacheservice/CacheServiceManager.scala Co-authored-by: irinaschubert <irina.schubert@dasch.swiss> * Update docs/architecture/decisions/0002-change-cache-service-manager-from-akka-actor-to-zlayer.md Co-authored-by: irinaschubert <irina.schubert@dasch.swiss> * cleanup * bumping dependencies * cleanup Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
- Loading branch information
Showing
51 changed files
with
2,095 additions
and
1,816 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docs/architecture/decisions |
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
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
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,15 @@ | ||
# C4 Model and ADRs | ||
|
||
## Installation | ||
|
||
```bash | ||
$ brew install adr-tools | ||
``` | ||
|
||
## Usage | ||
|
||
Run the following command from the root directory to start the C4 model browser: | ||
|
||
```bash | ||
$ make structurizer | ||
``` |
19 changes: 19 additions & 0 deletions
19
docs/architecture/decisions/0001-record-architecture-decisions.md
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,19 @@ | ||
# 1. Record architecture decisions | ||
|
||
Date: 2022-03-14 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
We need to record the architectural decisions made on this project. | ||
|
||
## Decision | ||
|
||
We will use Architecture Decision Records, as [described by Michael Nygard](http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions). | ||
|
||
## Consequences | ||
|
||
See Michael Nygard's article, linked above. For a lightweight ADR toolset, see Nat Pryce's [adr-tools](https://github.com/npryce/adr-tools). |
19 changes: 19 additions & 0 deletions
19
...ecture/decisions/0002-change-cache-service-manager-from-akka-actor-to-zlayer.md
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,19 @@ | ||
# 2. Change Cache Service Manager from Akka-Actor to ZLayer | ||
|
||
Date: 2022-04-06 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
The `org.knora.webapi.store.cacheservice.CacheServiceManager` was implemented as an `Akka-Actor`. | ||
|
||
## Decision | ||
|
||
As part of the move from `Akka` to `ZIO`, it was decided that the `CacheServiceManager` and the whole implementation of the in-memory and Redis backed cache is refactored using ZIO. | ||
|
||
## Consequences | ||
|
||
The usage from other actors stays the same. The actor messages and responses don't change. |
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,21 @@ | ||
workspace { | ||
|
||
model { | ||
user = person "User" | ||
softwareSystem = softwareSystem "Software System" | ||
|
||
user -> softwareSystem "Uses" | ||
} | ||
|
||
views { | ||
systemContext softwareSystem "Diagram1" { | ||
include * | ||
autoLayout | ||
} | ||
|
||
theme default | ||
} | ||
|
||
!adrs decisions | ||
|
||
} |
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
Oops, something went wrong.