Create Your First Architecture Diagram
What you'll build
In this tutorial, you will create a complete three-tier architecture diagram consisting of:
- A client-side web application (Next.js).
- An API gateway handling incoming HTTP traffic.
- Two backend microservices (
User ServiceandBilling Service). - A PostgreSQL primary database and a Redis session cache.
- Smart orthogonal connectors labeled with communication protocols.
Before you start
- Open Rekhic in your browser.
- No account or credit card is required. You can complete this tutorial entirely in Guest mode.
Step 1: Initialize a New Workspace
- From the Dashboard, click the "+ New Diagram" button.
- In the top-left header bar, click on
Untitled Diagramand rename it toThree-Tier Web Architecture. - Press
Enterto confirm.
Step 2: Add the Frontend and Gateway Nodes
- Press
Aon your keyboard (or click the Architecture Node tool in the creation toolbar). - Click near the top-center of the canvas to place a node. Label it
Web Frontend. - In the floating context toolbar above the node, open the Icon Picker, search for
Next.js, and select it. - Press
Aagain and place a node below the frontend. Label itAPI Gateway. - Select the
API Gatewaynode, click the Icon Picker, and chooseKongorNGINX.
Step 3: Add Backend Services and Data Stores
- Place two nodes side-by-side beneath the API Gateway:
- Left node: Label
User Service, iconNode.js. - Right node: Label
Billing Service, iconGo.
- Left node: Label
- Beneath the services, place two data store nodes using the Ellipse tool (
O) or Architecture Node tool (A):- Under
User Service: LabelUsers DB, iconPostgreSQL. - Under
Billing Service: LabelPayments Cache, iconRedis.
- Under
Step 4: Connect the Components
- Hover over the
Web Frontendnode to reveal its blue connection handles. - Drag a connector from the bottom handle of
Web Frontendto the top handle ofAPI Gateway. - Double-click the connector edge and type
HTTPS /api. - Connect the bottom handle of
API GatewaytoUser Service(labeledgRPC :50051). - Connect
API GatewaytoBilling Service(labeledgRPC :50052). - Connect
User ServicetoUsers DB(labeledSQL read/write). - Connect
Billing ServicetoPayments Cache(labeledTCP :6379).
Review the generated architecture
Step back and review your diagram:
- Are the connections orthogonal and clean?
- Are the service tiers visually distinct?
- Does each node clearly indicate its component role and underlying technology?
Customize the diagram
- Add a Network Boundary: Select the Rectangle tool (
R), draw a bounding box enclosingAPI Gateway, the microservices, and databases. - In the context toolbar, set the stroke to
Dashed, the fill to transparent, and send it to the back (Cmd/Ctrl + Shift + [). - Label the boundary
Internal VPC (10.0.0.0/16).
Export your result
- Click Export in the top navigation bar.
- Select PNG with 2x resolution to download a high-resolution graphic for documentation or slides.
- Click Export Markdown in the top navigation bar to generate an architectural markdown specification for your repository's
ARCHITECTURE.md.
Tips
- Use shortcut
Shift + 1(Fit View) to quickly center your diagram on the screen. - Hold
Alt/Optionand drag any node to instantly clone it.
Limitations
- The canvas currently stores diagrams locally in
IndexedDBwhen in guest mode. If you clear your browser cookies and site storage while not signed in, local diagrams will be cleared. Sign in to sync across devices.