Here is the sequence diagram for the URL shortening process:
User -> UI: Enter username and password
UI -> Authentication Service: Authenticate user (username, password)
Authentication Service -> UI: Authentication response (success/failure)
If authentication success:
UI -> User: Welcome page
User -> UI: Enter long URL to shorten
UI -> URL Shortening Service: Shorten URL (longURL)
URL Shortening Service -> UI: Short URL
UI -> User: Short URL
User -> UI: Click on short URL
UI -> URL Redirect Service: Redirect request (shortURL)
URL Redirect Service -> UI: Redirect response (longURL)
UI -> User