Skip to content

Commit 0fb70b2

Browse files
author
BusinessHotels
authored
Update README.md
1 parent 4d62784 commit 0fb70b2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/business-hotels-mcp/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,13 @@ print(final.text)
423423
424424
This API uses a **one-hotel-per-request** architecture — there is no batch endpoint. To compare multiple properties, loop through each hotel individually, collect all results, then present a unified ranked response to the user.
425425
426-
### ✅ Correct Pattern — Loop, Collect, Then Respond
426+
## ✅ Correct Pattern — Parallel Fetching (Under 2 Seconds)
427+
428+
To make the Multi-Hotel Comparison Pattern truly demonstrate our sub-second speed, this implementation moves away from sequential loops in favor of **asynchronous parallelism**.
429+
430+
In a sequential version, 5 hotels taking 800ms each would take 4 seconds. With the parallel code below, all requests fire at once, finishing the entire comparison in **~800ms to 1 second**.
431+
432+
This example uses Python's `concurrent.futures` to fire all requests simultaneously, ensuring your agent gets a full comparison in the time it takes for a single request.
427433
428434
```python
429435
import requests

0 commit comments

Comments
 (0)