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

Fusion eXchange Protocol (FXP) Version 0.2 #2

Open
orso82 opened this issue Feb 10, 2024 · 0 comments
Open

Fusion eXchange Protocol (FXP) Version 0.2 #2

orso82 opened this issue Feb 10, 2024 · 0 comments

Comments

@orso82
Copy link
Member

orso82 commented Feb 10, 2024

Like V0.1 but now, before communication starts client deletes ID__X__cli2srv and ID__X__srv2cli to remove any leftover from previous (possibly failed) conversations. Also generalized fuse --> req and srvc --> pro

sequenceDiagram
    autonumber
    actor FUSE as Service Requestor
    participant REDIS
    actor TokSys as Service Provider

    rect rgb(255, 223, 191)
        TokSys--)REDIS: Register service X (subscribe to channel X)
    end
    
    rect rgb(223, 255, 191)
        FUSE-->REDIS: Is service X available? (pubsub channels)
    end

    rect rgb(255, 191, 223)
        FUSE->>REDIS: del ID__X__req2pro
        FUSE->>REDIS: del ID__X__pro2req
        FUSE--)TokSys: publish FUSE session ID to channel X
    end
    
    loop
        rect rgb(191, 223, 255)
            FUSE->>+REDIS: lpush service inputs
            note over REDIS: ID__X__req2pro
            REDIS->>-TokSys: brpop service inputs
        end
        rect rgb(191, 223, 255)
            TokSys->>+REDIS: lpush service outputs
            note over REDIS: ID__X__pro2req
            REDIS->>-FUSE: brpop service outputs
        end
    end
Loading
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

No branches or pull requests

1 participant