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
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "type": "object", | |
| "title": "Donation Completed Event", | |
| "description": "Schema for donation.completed webhook events", | |
| "required": ["id", "event", "created", "environment", "data"], | |
| "properties": { | |
| "id": { | |
| "type": "integer", | |
| "description": "Unique event identifier" |
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
| // udp-ingress.js | |
| // Node.js UDP ingress with batching for high-throughput IoT measurements | |
| const dgram = require('dgram'); | |
| const http = require('http'); | |
| const cluster = require('cluster'); | |
| const os = require('os'); | |
| // Configuration | |
| const CONFIG = { |
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
| # views.py | |
| from django.http import JsonResponse | |
| from django.views.decorators.csrf import csrf_exempt | |
| from django.views.decorators.http import require_POST | |
| import json | |
| from .models import Measurement | |
| from .tasks import process_measurement_batch | |
| @csrf_exempt |
OlderNewer