| Field | Type | Description |
|---|---|---|
| device_id | UUID | Unique identifier per device |
| user_id | UUID | Assigned user for this device |
| device_type | String | Fixed value: "fit_band" |
| model | String | One of FitBand Pro, Lite, or Max |
| specifications | JSON String | Includes battery life, sensors, version |
| manufactured_date | int64 | Epoch ms Date device was built (6–1 months ago) |
| purchased_date | int64 | Epoch ms Purchased date (post-manufacture, < today) |
| Use Case | Django | Flask | FastAPI |
|---|---|---|---|
| CRUD Web App | ✅ Excellent | ✅ Good | |
| REST APIs | ✅ Moderate | ✅ Good | ✅ Excellent |
| Async APIs (IoT, ML) | ❌ Not Ideal | ❌ Not Ideal | ✅ Perfect |
| Streaming/WebSockets | ❌ | ❌ | ✅ Native support |
| ML Model Serving | ✅ Fast & lightweight |
| Feature | Uvicorn | Gunicorn | uWSGI | mod_wsgi |
|---|---|---|---|---|
| Protocol | ASGI | WSGI | WSGI | WSGI |
| Async support | ✅ Native | ❌ WSGI-only | ❌ | ❌ |
| WebSockets | ✅ | ❌ | ❌ | ❌ |
| Event loop | ✅ (uvloop) | ❌ | ❌ | ❌ |
| HTTP/2 | ✅ (experimental) | ❌ | ❌ | ❌ |
| Hot reload (dev) | ✅ --reload | ❌ | ❌ | |
| Performance | 🔥 High | 🟡 Moderate |
| Attribute | WSGI | ASGI |
|---|---|---|
| Protocol | HTTP only | HTTP, WebSockets, etc. |
| Concurrency | Blocking | Non-blocking (async) |
| Performance | Thread-based | Event loop (faster under I/O load) |
| Frameworks | Django, Flask | FastAPI, Starlette, Django (partial) |
| Feature | Flask | Django | FastAPI |
|---|---|---|---|
| Async Support | ❌ | 🚧 (limited) | ✅ Native async |
| Type Hints & Validation | ❌ | 🚧 (via Django Forms) | ✅ Pydantic-based |
| Auto OpenAPI Docs | ❌ | ❌ | ✅ Swagger & ReDoc |
| Performance | Moderate | Moderate | 🚀 High |
| Best For | Prototyping | Full-stack apps | Async APIs & microservices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Download the talisman installer script | |
| curl https://thoughtworks.github.io/talisman/install.sh > ~/install-talisman.sh | |
| chmod +x ~/install-talisman.sh | |
| # Install to a single project | |
| cd <project-folder> | |
| # as a pre-push hook |
curl https://thoughtworks.github.io/talisman/install.sh > ~/install-talisman.sh
chmod +x ~/install-talisman.sh
cd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data = from(bucket: "daily-aggregate") | |
| |> range(start: -1y) | |
| |> filter(fn: (r) => r["_measurement"] == "ticks") | |
| |> filter(fn: (r) => r["product"] == "AGUX/USD") | |
| |> window(every: 1y) | |
| max = data | |
| |> filter(fn: (r) => r["_field"] == "max") | |
| |> max() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from(bucket: "local") | |
| |> range(start: -1y) | |
| |> filter(fn: (r) => r["_measurement"] == "ticks") | |
| |> filter(fn: (r) => r["_field"] == "price") | |
| |> filter(fn: (r) => r["product"] == "AGUX/USD") | |
| |> aggregateWindow(every: 1y, fn: max, createEmpty: false) | |
| |> yield(name: "max") | |
| from(bucket: "local") | |
| |> range(start: -1y) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from(bucket: "local") | |
| |> range(start: -37d, stop: now()) | |
| |> filter(fn: (r) => r["_measurement"] == "ticks") | |
| |> filter(fn: (r) => r["_field"] == "price") | |
| |> filter(fn: (r) => r["product"] == "AGUX/USD") | |
| |> window(period: 1h) | |
| |> first() | |
| |> yield(name: "first") |
NewerOlder