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

Upmerge 1.7 into 1.8 [2022-06-20] #2546

Merged
merged 106 commits into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
a920559
fix code snippet typo and grammar pass
hhunter-ms Apr 8, 2022
0a6670f
fix parameter typo and grammar pass
hhunter-ms Apr 8, 2022
3e76bff
Fix CLI command typo
berndverst Apr 11, 2022
158a86a
Merge pull request #2357 from berndverst/patch-11
greenie-msft Apr 11, 2022
eb38da6
Merge branch 'v1.7' into typo_parameterconsistency
msfussell Apr 11, 2022
77acf51
Merge branch 'v1.7' into typo_codesnippet
msfussell Apr 11, 2022
4bc7495
Fixes state-store-ttl Python example (#2352)
berndverst Apr 11, 2022
7fd06de
Merge branch 'v1.7' into typo_parameterconsistency
msfussell Apr 11, 2022
d1c7fbf
Merge branch 'v1.7' into typo_codesnippet
msfussell Apr 11, 2022
750231f
Fix go quickstart port (#2360)
yaron2 Apr 12, 2022
cc8a277
Fixes wrong working directory for dotnet state management sample (#2359)
slapointe Apr 13, 2022
e6828ce
add new dapr init flags and examples to docs
hhunter-ms Apr 14, 2022
01dcb96
quick save
hhunter-ms Apr 14, 2022
5028f43
Merge branch 'v1.7' into daprinit_flags
hhunter-ms Apr 14, 2022
89eb035
[state management] Update docs around transactional operations (#2372)
hhunter-ms Apr 15, 2022
381ede8
Fixed typo in security concept doc (#2374)
moreyhat Apr 16, 2022
3cbcf52
Fix curl example
Taction Apr 13, 2022
e2b8a32
Merge branch 'v1.7' into patch-1
Taction Apr 16, 2022
0efc59f
Merge branch 'v1.7' into typo_parameterconsistency
hhunter-ms Apr 18, 2022
b9e1f07
Merge branch 'v1.7' into daprinit_flags
hhunter-ms Apr 20, 2022
53c41c0
Merge branch 'v1.7' into typo_codesnippet
hhunter-ms Apr 20, 2022
92253af
Merge pull request #2367 from hhunter-ms/daprinit_flags
greenie-msft Apr 20, 2022
b99c57a
Merge branch 'v1.7' into patch-1
greenie-msft Apr 20, 2022
0d3cdab
Merge pull request #2361 from Taction/patch-1
greenie-msft Apr 20, 2022
df856c7
Merge branch 'v1.7' into typo_parameterconsistency
greenie-msft Apr 20, 2022
7b9f468
Merge branch 'v1.7' into typo_codesnippet
greenie-msft Apr 20, 2022
791d117
Merge pull request #2350 from hhunter-ms/typo_parameterconsistency
greenie-msft Apr 20, 2022
a5eeb76
Merge branch 'v1.7' into typo_codesnippet
greenie-msft Apr 20, 2022
73f1938
Update metrics-overview.md
greenie-msft Apr 20, 2022
ed41ed4
Merge pull request #2349 from hhunter-ms/typo_codesnippet
greenie-msft Apr 20, 2022
970ffc9
replace zip file; update url (#2386)
hhunter-ms Apr 21, 2022
890dc20
Update to version to 1.7.1 (#2388)
greenie-msft Apr 22, 2022
ea1d640
typo fix (#2384)
hhunter-ms Apr 22, 2022
b4ba8ee
update building_blocks.png (#2387)
hhunter-ms Apr 22, 2022
56ee7a9
Update dapr runtime version to 1.7.2
greenie-msft Apr 22, 2022
a077ff6
Remove "quickstart" references from tutorial (#2383)
hhunter-ms Apr 22, 2022
6d0317c
Merge branch 'v1.7' into v1.7.2_hotfix
yaron2 Apr 22, 2022
423f959
sentry isn't installed by default in self-hosted mode (#2366)
duglin Apr 22, 2022
33a5243
Bump nanoid from 3.1.23 to 3.3.2 in /daprdocs (#2348)
dependabot[bot] Apr 22, 2022
358287d
update JS submodule
greenie-msft Apr 22, 2022
5b9deea
Merge branch 'v1.7' into v1.7.2_hotfix
greenie-msft Apr 25, 2022
da4b747
Merge pull request #2391 from greenie-msft/update_js_submodule
greenie-msft Apr 25, 2022
76608d2
Merge branch 'v1.7' into v1.7.2_hotfix
greenie-msft Apr 25, 2022
fc27f0c
Merge pull request #2390 from greenie-msft/v1.7.2_hotfix
greenie-msft Apr 25, 2022
327830a
[Dapr API] Extend example to include delete state (#2377)
hhunter-ms Apr 26, 2022
2d4fb5d
Fix TTL example for Python (#2394)
berndverst Apr 26, 2022
3d72cc3
Fix config yaml w.r.t. name and namespace (#2397)
duglin Apr 27, 2022
817ace6
[quickstarts] fix port typo in pubsub and service invo (#2369)
hhunter-ms Apr 27, 2022
76be5e3
update kubernetes overview to explain where annotations should actual…
ThorstenHans Apr 29, 2022
2b77eb5
Add profile-port to env variables table (#2402)
hhunter-ms Apr 29, 2022
af0e66a
[secrets and actors api reference docs] error code fixes (#2356)
hhunter-ms May 2, 2022
4f1f5c8
update presentation
msfussell May 4, 2022
c318491
add note to table
hhunter-ms May 4, 2022
e0a2d6a
add missing upgrade step for 1.7 (#2423)
yaron2 May 5, 2022
472fe5a
update presentation (#2415)
msfussell May 5, 2022
38aab19
Merge branch 'v1.7' of https://github.com/msfussell/docs into deckpatch
msfussell May 5, 2022
c79175d
new deck
msfussell May 5, 2022
1695a3e
Merge pull request #2425 from msfussell/deckpatch2
greenie-msft May 5, 2022
a221cfd
Fixes in howto-bindings: (#2416)
ItalyPaleAle May 6, 2022
0ce74a1
API tokens do not need to be JWT's (#2332)
ItalyPaleAle May 6, 2022
3daab8a
message for restarting the dapr-enabled pods (#2399)
pravinpushkar May 6, 2022
fbf051d
Merge branch 'v1.7' into run_own_daprdexe_images
msfussell May 10, 2022
cfa2100
fix kafka pubsub example config (#2429)
Taction May 10, 2022
a81556c
update otel collector version to 0.50.0 (#2434)
fabistb May 12, 2022
6937597
Merge branch 'v1.7' into run_own_daprdexe_images
msfussell May 12, 2022
ffe2429
Fixing URL bug in AWS name (#2439)
msfussell May 16, 2022
3d53cda
Update runtime version to 1.7.3
greenie-msft May 18, 2022
498cf71
Update vscode-how-to-debug-multiple-dapr-apps.md
jackliusr May 17, 2022
d8c31fd
correct configuration.program in launch.json
jackliusr May 18, 2022
5bd55e8
Merge pull request #2443 from greenie-msft/update_version_to_1.7.3
greenie-msft May 18, 2022
79173c7
Merge branch 'v1.7' into v1.7
msfussell May 18, 2022
33950bb
Merge branch 'v1.7' into patch-1
greenie-msft May 18, 2022
3e6d039
Merge pull request #2445 from jackliusr/v1.7
greenie-msft May 18, 2022
9abc1ed
Merge branch 'v1.7' into patch-1
greenie-msft May 18, 2022
a5db226
Merge branch 'v1.7' into run_own_daprdexe_images
greenie-msft May 18, 2022
6a6d8c0
Update daprdocs/content/en/reference/arguments-annotations-overview.md
greenie-msft May 18, 2022
755b952
Merge pull request #2440 from jackliusr/patch-1
greenie-msft May 18, 2022
f7c1322
Merge branch 'v1.7' into run_own_daprdexe_images
greenie-msft May 18, 2022
65aaa63
Merge pull request #2421 from hhunter-ms/run_own_daprdexe_images
greenie-msft May 18, 2022
007a551
Mention that the DAPR_INSTALL_DIR directory must already exist (#2410)
Jackenmen May 26, 2022
63b6b3f
Added missing metadata option for Service Bus in 1.7 (#2448)
ItalyPaleAle May 26, 2022
92e1b10
[Pub/sub] Overview & how-tos (#2414)
hhunter-ms May 26, 2022
ca8eb5f
typo fix and freshness pass (#2460)
hhunter-ms May 26, 2022
1eaa795
add example of non-default ports (#2458)
hhunter-ms May 26, 2022
ef2e724
[AWS components] Add note for AWS K8s components (#2459)
hhunter-ms May 26, 2022
b055d39
fix typo (#2468)
zhi-gang-sun May 28, 2022
b666137
Update latest version of dapr runtime to 1.7.4 (#2478)
greenie-msft Jun 1, 2022
0f47125
Update service-invocation-overview.md (#2419)
nyemade-uversky Jun 1, 2022
c113088
[Quickstart] Secrets Mgmt (#2470)
hhunter-ms Jun 1, 2022
93a6a51
attempt at java example (#2486)
hhunter-ms Jun 2, 2022
449bd58
fix link (#2489)
hhunter-ms Jun 2, 2022
0278d87
update orderprocessor port (#2491)
hhunter-ms Jun 2, 2022
f9acc46
[State store component] Add clarification to Redis state store setup …
hhunter-ms Jun 3, 2022
a4e0709
Match linkTitle case for HTTP (#2480)
AaronCrawfis Jun 8, 2022
5ba9f2a
fix and move links (#2505)
hhunter-ms Jun 9, 2022
e7711c1
fix formatting and add response output (#2504)
sarsharma Jun 10, 2022
7eff7d8
Add note to documentation to reference the podName attribute (#2523)
CacheCoww Jun 14, 2022
4b1deae
Added spec.metadata to example and note (#2527)
tlawrie Jun 15, 2022
e4b9898
Clarify how Component configuration works (#2507)
sjwaight Jun 16, 2022
0cbc5b3
[secrets mgmt] typo in go section (#2530)
hhunter-ms Jun 17, 2022
5a69a5c
Fixed Go sample code (#2531)
ItalyPaleAle Jun 17, 2022
8b30dc7
Update issue and typos (#2533)
msfussell Jun 17, 2022
2cc9c74
diagram updates (#2536)
msfussell Jun 20, 2022
9e83de0
[How-tos] Remove step numbers in how-to docs (#2542)
hhunter-ms Jun 20, 2022
4fe8c78
Upmerge of v1.7 into v1.8 [2022-06-20]
greenie-msft Jun 21, 2022
66a09bf
Merge branch 'v1.8' into upmerge_1.7_into_1.8
msfussell Jun 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions daprdocs/content/en/concepts/components-concept.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,53 +12,61 @@ Dapr uses a modular design where functionality is delivered as a component. Each

You can get a list of current components available in the hosting environment using the `dapr components` CLI command.

## Component specification

Each component has a specification (or spec) that it conforms to. Components are configured at design-time with a YAML file which is stored in either a `components/local` folder within your solution, or globally in the `.dapr` folder created when invoking `dapr init`. These YAML files adhere to the generic [Dapr component schema]({{<ref "component-schema.md">}}), but each is specific to the component specification.

It is important to understand that the component spec values, particularly the spec `metadata`, can change between components of the same component type, for example between different state stores, and that some design-time spec values can be overridden at runtime when making requests to a component's API. As a result, it is strongly recommended to review a [component's specs]({{<ref "components-reference">}}), paying particular attention to the sample payloads for requests to set the metadata used to interact with the component.

## Available component types

The following are the component types provided by Dapr:

## State stores
### State stores

State store components are data stores (databases, files, memory) that store key-value pairs as part of the [state management]({{< ref "state-management-overview.md" >}}) building block.

- [List of state stores]({{< ref supported-state-stores >}})
- [State store implementations](https://github.com/dapr/components-contrib/tree/master/state)

## Name resolution
### Name resolution

Name resolution components are used with the [service invocation]({{<ref "service-invocation-overview.md">}}) building block to integrate with the hosting environment and provide service-to-service discovery. For example, the Kubernetes name resolution component integrates with the Kubernetes DNS service, self-hosted uses mDNS and clusters of VMs can use the Consul name resolution component.

- [List of name resolution components]({{< ref supported-name-resolution >}})
- [Name resolution implementations](https://github.com/dapr/components-contrib/tree/master/nameresolution)

## Pub/sub brokers
### Pub/sub brokers

Pub/sub broker components are message brokers that can pass messages to/from services as part of the [publish & subscribe]({{< ref pubsub-overview.md >}}) building block.

- [List of pub/sub brokers]({{< ref supported-pubsub >}})
- [Pub/sub broker implementations](https://github.com/dapr/components-contrib/tree/master/pubsub)

## Bindings
### Bindings

External resources can connect to Dapr in order to trigger a method on an application or be called from an application as part of the [bindings]({{< ref bindings-overview.md >}}) building block.

- [List of supported bindings]({{< ref supported-bindings >}})
- [Binding implementations](https://github.com/dapr/components-contrib/tree/master/bindings)

## Secret stores
### Secret stores

A [secret]({{<ref "secrets-overview.md">}}) is any piece of private information that you want to guard against unwanted access. Secrets stores are used to store secrets that can be retrieved and used in applications.

- [List of supported secret stores]({{< ref supported-secret-stores >}})
- [Secret store implementations](https://github.com/dapr/components-contrib/tree/master/secretstores)

## Configuration stores
### Configuration stores

Configuration stores are used to save application data, which can then be read by application instances on startup or notified of when changes occur. This allows for dynamic configuration.

- [List of supported configuration stores]({{< ref supported-configuration-stores >}})
- [Configuration store implementations](https://github.com/dapr/components-contrib/tree/master/configuration)

## Middleware
### Middleware

Dapr allows custom [middleware]({{<ref "middleware.md">}}) to be plugged into the HTTP request processing pipeline. Middleware can perform additional actions on an HTTP request, such as authentication, encryption and message transformation before the request is routed to the user code, or before the request is returned to the client. The middleware components are used with the [service invocation]({{<ref "service-invocation-overview.md">}}) building block.
Dapr allows custom [middleware]({{<ref "middleware.md">}}) to be plugged into the HTTP request processing pipeline. Middleware can perform additional actions on an HTTP request, such as authentication, encryption and message transformation before the request is routed to the user code, or before the response is returned to the client. The middleware components are used with the [service invocation]({{<ref "service-invocation-overview.md">}}) building block.

- [List of supported middleware components]({{< ref supported-middleware >}})
- [Middleware implementations](https://github.com/dapr/components-contrib/tree/master/middleware)
11 changes: 8 additions & 3 deletions daprdocs/content/en/concepts/dapr-services/sidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ weight: 100
description: "Overview of the Dapr sidecar process"
---

Dapr uses a [sidecar pattern]({{< ref "concepts/overview.md#sidecar-architecture" >}}), meaning the Dapr APIs are run and exposed on a separate process (i.e. the Dapr sidecar) running alongside your application. The Dapr sidecar process is named `daprd` and is launched in different ways depending on the hosting environment.
Dapr uses a [sidecar pattern]({{< ref "concepts/overview.md#sidecar-architecture" >}}), meaning the Dapr APIs are run and exposed on a separate process, the Dapr sidecar, running alongside your application. The Dapr sidecar process is named `daprd` and is launched in different ways depending on the hosting environment.

The Dapr sidecar exposes [building block APIs]({{<ref building-blocks-concept>}}) used by your application business logic, a [metadata API]({{<ref metadata_api>}}) for discoverability of capabiliites and to set attributes and a [health API]({{<ref sidecar-health>}}) to determine health status.

<img src="/images/overview-sidecar-apis.png" width=700>

The sidecar APIs are called from your application over local http or gRPC endpoints.
<img src="/images/overview-sidecar-model.png" width=700>

## Self-hosted with `dapr run`
Expand All @@ -20,13 +25,13 @@ On [Kubernetes]({{< ref kubernetes.md >}}), the Dapr control plane includes the

## Running the sidecar directly

In most cases you do not need to run `daprd` explicitly, as the sidecar is either launched by the CLI (self-hosted mode) or by the dapr-sidecar-injector service (Kubernetes). For advanced use cases (debugging, scripted deployments, etc.) the `daprd` process can be launched directly.
In most cases you do not need to run `daprd` explicitly, as the sidecar is either launched by the [CLI]({{<ref cli-overview>}}) (self-hosted mode) or by the dapr-sidecar-injector service (Kubernetes). For advanced use cases (debugging, scripted deployments, etc.) the `daprd` process can be launched directly.

For a detailed list of all available arguments run `daprd --help` or see this [table]({{< ref arguments-annotations-overview.md >}}) which outlines how the `daprd` arguments relate to the CLI arguments and Kubernetes annotations.

### Examples

1. Start a sidecar along an application by specifying its unique ID. Note `--app-id` is a required field:
1. Start a sidecar along with an application by specifying its unique ID. Note `--app-id` is a required field:

```bash
daprd --app-id myapp
Expand Down
Loading