Skip to content

Comments

Experimental API routes and server listing API#5162

Draft
aecsocket wants to merge 36 commits intomainfrom
boris/server-listing-api
Draft

Experimental API routes and server listing API#5162
aecsocket wants to merge 36 commits intomainfrom
boris/server-listing-api

Conversation

@aecsocket
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

@aecsocket aecsocket force-pushed the boris/server-listing-api branch from f1c15cf to e096541 Compare January 23, 2026 10:05
@aecsocket aecsocket force-pushed the boris/server-listing-api branch 3 times, most recently from b5c9ddb to 45eb02f Compare February 3, 2026 19:14
@aecsocket aecsocket force-pushed the boris/server-listing-api branch 2 times, most recently from c91f074 to d01a0fe Compare February 11, 2026 14:00
@aecsocket aecsocket force-pushed the boris/server-listing-api branch from 392154d to 92a60ff Compare February 18, 2026 15:16
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 18, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
storybook 37dc0fe Commit Preview URL

Branch Preview URL
Feb 23 2026, 10:41 PM

@aecsocket aecsocket force-pushed the boris/server-listing-api branch from 9055fb4 to 1ab3f4c Compare February 20, 2026 23:59
Comment on lines 793 to 800
let mut redis = redis.connect().await?;
let minecraft_java_server_pings = redis.get_many_deserialized_from_json::<exp::minecraft::JavaServerPing>(
server_ping::REDIS_NAMESPACE,
&total_project_ids
.iter()
.map(|id| ProjectId::from(*id).to_string())
.collect::<Vec<_>>(),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should fallback to ClickHouse

Comment on lines +127 to +153
let row = ServerPingRecord {
recorded: ping.when.timestamp_nanos_opt().unwrap()
/ 100_000,
project_id: project_id.0,
address: ping.address.clone(),
port: ping.port,
latency_ms: data.map(|d| d.latency.as_millis() as u32),
description: data.map(|d| d.description.clone()),
version_name: data.map(|d| d.version_name.clone()),
version_protocol: data.map(|d| d.version_protocol),
players_online: data.map(|d| d.players_online),
players_max: data.map(|d| d.players_max),
};

ch.write(&row)
.await
.wrap_err("failed to write ping record")?;

redis
.set_serialized_to_json(
REDIS_NAMESPACE,
project_id,
ping,
None,
)
.await
.wrap_err("failed to set redis key")?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should give a little more leeway - dont display server as offline if ping fails once

@aecsocket aecsocket force-pushed the boris/server-listing-api branch from 1ab3f4c to 37dc0fe Compare February 23, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants