This proposed setup assumes that you want to use synapse with a Postgres database behind a separate nginx reverse proxy for TLS.
A detailed explanation of a basic and extended dns setup can be found here
""" | |
caching test/demo | |
first: | |
pip install fastapi aiocache "uvicorn[standard]" | |
""" | |
import asyncio | |
import contextlib | |
import json | |
import logging |
This proposed setup assumes that you want to use synapse with a Postgres database behind a separate nginx reverse proxy for TLS.
A detailed explanation of a basic and extended dns setup can be found here
See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
type primality = Prime | Composite | Unknown | |
type sieve = primality array | |
exception Out_of_bounds | |
let make n = | |
if n < 2 then invalid_arg "Sieve.make" | |
else | |
let sieve = Array.make n Unknown in | |
sieve.(0) <- Composite; | |
sieve.(1) <- Composite; |