Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.
Rust emailemail-validationemail-validation-apiemail-verificationemail-verification-apiemail-verifierhacktoberfest
GITBOOK-25: docs: Scaling, remove outdated
[email protected]d424ca03d451
diff --git a/docs/SUMMARY.md b/docs/SUMMARY.mdindex d15bcbb3..c2938117 100644--- a/docs/SUMMARY.md+++ b/docs/SUMMARY.md@@ -12,8 +12,8 @@* [SaaS vs Self-Host](self-hosting/saas-vs-self-host.md)* [Install Reacher in 20min](self-hosting/install.md)* [Scaling for Production](self-hosting/scaling-for-production/README.md)- * [Option 1: Manage scaling yourself](self-hosting/scaling-for-production/option-1-manage-scaling-yourself.md)- * [Option 2: RabbitMQ-based Queue Architecture](self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md)+ * [Manage scaling yourself](self-hosting/scaling-for-production/option-1-manage-scaling-yourself.md)+ * [Option 1: RabbitMQ-based Queue Architecture](self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md)* [Licensing](self-hosting/licensing/README.md)* [Commercial License Trial](self-hosting/licensing/commercial-license-trial.md)* [Proxies](self-hosting/proxies/README.md)diff --git a/docs/self-hosting/scaling-for-production/option-1-manage-scaling-yourself.md b/docs/self-hosting/scaling-for-production/option-1-manage-scaling-yourself.mdindex 07aae25b..885ddfbd 100644--- a/docs/self-hosting/scaling-for-production/option-1-manage-scaling-yourself.md+++ b/docs/self-hosting/scaling-for-production/option-1-manage-scaling-yourself.md@@ -1,8 +1,8 @@-# Option 1: Manage scaling yourself+# Manage scaling yourselfReacher is stateless by design. This means that you can spawn instances of Reacher concurrently, and they don't need coordinate to perform email verifications.-However, in most cases, some coordination is desired. For example, to avoid IPs being blacklisted, we might want to limit to the number of spawned instances at any time (concurrency) or during a given period of time (throttling). See the last section in [proxies](../proxies/ "mention") for some actual numbers for these settings.+However, in most cases, some coordination is desired. For example, when using a proxy, you might want to respect the proxy's concurrency and throttling limits to avoid seeing your connection refused.The best scaling solution for you is the one that fits into your architecture. Below are several scaling solutions, including both traditional and advanced approaches. They are often not mutually exclusive.diff --git a/docs/self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md b/docs/self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.mdindex 71fd2d0c..dbfc9552 100644--- a/docs/self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md+++ b/docs/self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md@@ -1,4 +1,4 @@-# Option 2: RabbitMQ-based Queue Architecture+# Option 1: RabbitMQ-based Queue ArchitectureReacher includes an optional, opinionated queue-based architecture designed to scale efficiently and handle high email verification volumes. This architecture comprises 4 main components and is highly configurable to meet specific business needs.@@ -8,37 +8,37 @@ Note that Reacher provides the same Docker image `reacherhq/commercial-license-t<figure><img src="../../.gitbook/assets/Screenshot 2024-11-30 at 15.33.27.png" alt=""><figcaption><p>Reacher queue architecture</p></figcaption></figure>-With this architecture, it's possible to horizontally scale the number of workers. However, to prevent spawning too many workers at once resulting in blacklisted IPs, we need to configure some concurrency and throttling parameters below.+With this architecture, it's possible to horizontally scale the number of workers.### Worker Configuration#### **Enabling the Architecture**-To enable the worker-based architecture, configure the following parameters in your deployment:+To enable the worker-based architecture, configure the following parameters in your deployment. The parameters are given in their `backend_config.toml` format (e.g. `worker.enable`) as well as in the environment variable format (e.g. `RCH__WORKER__ENABLE`):-* `worker.enable`: Set to `true` to activate the worker role.-* `worker.rabbitmq.url`: URL of the RabbitMQ instance for task queuing.-* `postgres.db_url`: URL of a PostgreSQL database to store verification results.+* `worker.enable` or `RCH__WORKER__ENABLE`: Set to `true` to activate the worker role.+* `worker.rabbitmq.url` or `RCH__WORKER__RABBITMQ__URL`: URL of the RabbitMQ instance for task queuing.+* `postgres.storage.postgres.db_url` or `RCH__STORAGE__POSTGRES__DB_URL`: URL of a PostgreSQL database to store verification results.#### Using Proxies for WorkersSince spawning workers on cloud providers doesn't guarantee a reputable IP assigned to the worker, we configure all workers to use a proxy.-* `proxy.{host,port}`: Set a proxy to route all SMTP requests through. You can optionally pass in `username` and `password` if required.+* `proxy.{host,port}` or `RCH__PROXY__{HOST,PORT}`: Set a proxy to route all SMTP requests through. You can optionally pass in `username` and `password` if required.{% hint style="info" %}The Dockerfile provided in the Commercial License Trial already has these parameters set up.{% endhint %}-#### Concurrency and Throttling Parameters+#### Optional Concurrency and Throttling Parameters-To prevent IP blacklisting, configure the following parameters:+You may also configure the following parameters:* **Concurrency**:- * `worker.rabbitmq.concurrency`: Set to `5`. Each worker processes up to 5 emails concurrently, which means each proxy IP address is perform maximum 5 email verifications at any give time.+ * `worker.rabbitmq.concurrency`: Set to `5`. Each worker processes up to 5 emails concurrently.* **Throttling**:* `throttle.max_requests_per_minute`: Set to `60`. Limits request spikes to prevent SMTP server flags.- * `throttle.max_requests_per_day`: Set to `10,000`. Aligns with the recommended verifications per proxy IP.+ * `throttle.max_requests_per_day`: Set to `10,000`. {% hint style="info" %}The Dockerfile provided in the Commercial License Trial already has these parameters set up.@@ -46,7 +46,7 @@ The Dockerfile provided in the Commercial License Trial already has these parame## Understanding the architecture with Docker Compose-We do not recommend using Docker Compose for a high-volume production setup. However, for understanding or learning the architecture, this [`docker_compose.yaml`](../../../docker-compose.yaml) file can be useful.+We do not recommend using Docker Compose for a high-volume production setup. However, for understanding or learning the architecture, this [`docker_compose.yaml`](../../../rabbitmq/docker-compose.yaml) file can be useful.## More questions?