1

I am looking for a tool/framework/library which will allow me to create a sequence diagram between interacting components i.e. client and server in real time or say almost real time. The server logs whatever it has received and sent with a label 'sent' and 'received'.

Constraint: I cannot change the server code and only allowed to read/monitor the server log.

2
  • 1
    How do you want to view the sequence diagram? In the browser? In the app? Would a text file (ASCII art) be ok, if you could tail it to constantly see the newest messages? If the app were Windows only, but could run in Linux under Wine, would that be ok? And, can you code? Feb 12 '19 at 11:47
  • 1
    The server is running on linux, at present I just do tail -f of the log file and see the messages but I wanted to create an animation/pictorial representation of latest 5 send/receive between client server. My wish is to create a web app i.e. see in browser so that it can be visible from anywhere. I already found bokeh [python framweork] to do create a webapp but I could not create a sequence diagram. Feb 12 '19 at 13:52
0

You could do it yourself by periodically reading the last few entries of the log file in Python and generating "Ascii art" E.g. Sender ------ (message name) ----> receiver.

Or, you could read the last few lines of the log file and generate an input file for msgcgen, or MSG Generator (which I consider to be far superior. Plus Zoltan gives good & quick email help & welcomes new features).

Since you mention a web app, you could search for some JS which will generate an MSC from a textual description. Maybe something like this?

Check the demo on the site & fork it on GitHub.

10
  • How to keep updating it ? Feb 12 '19 at 18:16
  • How do you want to present it? If you bury it in HTML, you can use a <meta http-equiv="refresh" content="X"> tag to auto-refresh the page every X seconds and just generate the MSC as an image which you embed in the page. Feb 13 '19 at 11:49
  • Did you ever find an answer? Nov 11 '19 at 12:54
  • 1
    No, I still didn't find the ready to use solution Nov 11 '19 at 13:21
  • 1
    I tried that, the logs are getting written to syslog and reading and feeding to it, doesn't update it with refresh. Nov 12 '19 at 6:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.