Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Custom relationship between instances #346

Closed Answered by simonbrowndotje
nikola-zivkov asked this question in Q&A
Discussion options

You must be logged in to vote

I'd be tempted to model the read/write and read-only databases as separate containers, which then makes what you're trying achieve easier. That said, the following will work (I don't know why && isn't in the docs):

workspace {

    model {
        softwareSystem = softwareSystem "Software System" {
            app = container "App"
            db = container "Database"

            r1 = app -> db "Reads from and writes to" {
                tags "Read/Write"
            }
            r2 = app -> db "Reads from" {
                tags "Read-Only"
            }
        }
        
        env = deploymentEnvironment "env" {
            deploymentNode "Server 1" {
                appInstance …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nikola-zivkov
Comment options

@simonbrowndotje
Comment options

Answer selected by nikola-zivkov
@nikola-zivkov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #345 on October 04, 2023 16:33.