Frontend API (FA):
- User adds wallet
- User KYC verifies
- User changes wallet
- User changes wallet
These notes are based the excellent A Complete Guid to useEffect.
Quote:
Does count somehow “watch” changes to our state and update automatically? That might be a useful first intuition when you learn React but it’s not an accurate mental model.
In this example, count is just a number. It’s not a magic “data binding”, a “watcher”, a “proxy”, or anything else. It’s a good old number
GistID: eedf956842966c41d47322f5b9e2a121 | |
// Pre-request Postman script for sending Azure Service Bus REST requests using a SAS key | |
// https://docs.microsoft.com/en-us/rest/api/eventhub/Generate-SAS-token?redirectedfrom=MSDN#nodejs | |
// also https://gist.github.com/DinoChiesa/75796b27828cf8e15c91 | |
const sasKey = postman.getEnvironmentVariable("SASKey"); | |
const sasKeyName = postman.getEnvironmentVariable("SASKeyName"); | |
const sbSubDomain = postman.getEnvironmentVariable("REST_SUBDOMAIN"); |
# requires values with whitespace to be surrounded with double quotes | |
env -S "`cat .env`" dotnet run |
GistID: 4060cc90d31c57d8d77c8b011e2420af | |
1. Developer makes change to tf config | |
1. Commits to pr branch | |
1. PR branch build runs tf _plan_ | |
1. Manual pr "check" for devops to review plan in CI | |
1. Devops person approves | |
1. PR is merged into develop/master | |
1. develop/master build pipeline runs _apply_ after tests pass |
# assuming .env file is in working directory and looks like (must have no whitspace expect for newlines or within quotes) | |
# REACT_APP_API_URL=https://myapi.io | |
# REACT_APP_AUTH_TOKEN=123 | |
# see https://stackoverflow.com/a/4229346/34315 | |
for line in `cat .env`; do echo "$line"; done |
Data distribution vs. pub/sub
Udi's "service" is a logical entity vs. component physical entity (a piece of code running in one or more hosts)
Preferred interaction
Avoid crossing network boundaries within service boundaries
Service - technical authority for a business capability
Data distribution from a database to a frontend is likely within the same logical service boundary
For pub/sub communicating between differing business capabilities usually doesn't care about low latency
GistID: f6f0f97692f2dee4590c0403865b29cb
I want to replace Azure Functions with custom auto-scaling / consumption utilization using Dapr. I'm going to use this sample to get started.
GistID: cba6f001e9a8e35b9a816eab86debfa1 | |
# Requirements | |
- Foldable | |
- Upright | |
- Under $200 | |
# Nice-to-have |