CatgirlIntelligenceAgency/code/features-search/feedlot-client
Viktor Lofgren eaf836dc66 (service/grpc) Reduce thread count
Netty and GRPC by default spawns an incredible number of threads on high-core CPUs, which amount to a fair bit of RAM usage.

Add custom executors that throttle this behavior.
2024-02-27 21:22:21 +01:00
..
java/nu/marginalia/feedlot (service/grpc) Reduce thread count 2024-02-27 21:22:21 +01:00
build.gradle (refac) Remove src/main from all source code paths. 2024-02-23 16:13:40 +01:00
readme.md (search) Add RSS Feeds to site info 2023-12-26 16:21:40 +01:00

Client for FeedlotTheFeedBot, the RSS/Atom feed fetcher and cache for Marginalia Search.

This service is external to the Marginalia Search codebase, as it is not a core part of the search engine and has other utilities.

Example


import java.time.Duration;

var client = new FeedlotClient("localhost", 8080, 
        gson, 
        Duration.ofMillis(100),  // connect timeout
        Duration.ofMillis(100)); // request timeout

CompleteableFuture<FeedItems> items = client.getFeedItems("www.marginalia.nu");