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

Remove Endpoint/Calls in favor of Component #529

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Conversation

raphael
Copy link
Member

@raphael raphael commented Oct 6, 2023

Components can be used to represent endpoints:

		Container("Web Application", "Delivers content to users.", func() {
			Component("Dashboard Endpoint", "Serve dashboard content.", func() {
				Tag("endpoint")
			})
			Uses("Application Database", "Reads from and writes to", "MySQL", Synchronous)
		})

Uses can target the endpoint alleviating the need for Calls:

		Container("Load Balancer", "Distributes requests across the Web Application instances.", func() {
			Uses("Web Application/Dashboard Endpoint", "Routes requests to", "HTTPS", Synchronous)
		})

Components can be used to represent endpoints:

```go
		Container("Web Application", "Delivers content to users.", func() {
			Component("Dashboard Endpoint", "Serve dashboard content.", func() {
				Tag("endpoint")
			})
			Uses("Application Database", "Reads from and writes to", "MySQL", Synchronous)
		})
```
`Uses` can target the endpoint alleviating the need for `Calls`:
```go
		Container("Load Balancer", "Distributes requests across the Web Application instances.", func() {
			Uses("Web Application/Dashboard Endpoint", "Routes requests to", "HTTPS", Synchronous)
		})
```
@raphael raphael merged commit ab1a0af into main Oct 13, 2023
7 checks passed
@raphael raphael deleted the remove_endpoint_calls branch October 13, 2023 23:21
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

Successfully merging this pull request may close these issues.

1 participant