chethankumar / test

0 stars 0 forks source link

[RFC] survey app #11

Open chethankumar opened 3 months ago

chethankumar commented 3 months ago

We are adding a survey form filling utility

the system has 2 services. SurveyInput which is responsible for gathering the survey input with form. DataPersister which is responsible to persist data to database. When the user inputs data into the form, the Survey input service picks up the data and sends to DataPersister to persist the data to database.
chethankumar commented 3 months ago

Here's a plantUML sequence diagram for the flow you described:

@startuml

class User {
    - inputs survey data into form
}

class SurveyInput {
    + receives survey data from user
    + sends data to DataPersister
}

class DataPersister {
    + receives data from SurveyInput
    + persists data to database
}

User->>SurveyInput: inputs survey data into form
SurveyInput->>DataPersister: sends data to Database

@enduml

This sequence diagram shows the flow of messages between the user, SurveyInput service and DataPersister service. The User inputs survey data into the form and the SurveyInput service receives this data. It then sends this data to the DataPersister service which persists it to the database.