ARSON
ARSON
Explore posts from servers
RRailway
Created by ARSON on 9/28/2024 in #βœ‹ο½œhelp
build step trying to copy missing file?
48bdb90b-0fe0-4764-8f6c-0bcbef0cca1c not sure if technical details matter, but rust outputs various directories into a /target directory which i'm assuming this isn't picking up on
-------------------
35 | COPY --from=0 /etc/ssl/certs /etc/ssl/certs
36 | RUN true
37 | >>> COPY --from=0 /app/bin/leptos-sse-chat /app/bin/leptos-sse-chat
38 | CMD ["cargo leptos serve --release"]
39 |
-------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref j3hlbnh0j8q9v941rffaby66o::funo3xrunfajb9dmfqdp29xjq: "/app/bin/leptos-sse-chat": not found
-------------------
35 | COPY --from=0 /etc/ssl/certs /etc/ssl/certs
36 | RUN true
37 | >>> COPY --from=0 /app/bin/leptos-sse-chat /app/bin/leptos-sse-chat
38 | CMD ["cargo leptos serve --release"]
39 |
-------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref j3hlbnh0j8q9v941rffaby66o::funo3xrunfajb9dmfqdp29xjq: "/app/bin/leptos-sse-chat": not found
but i admittedly don't understand the magic behind the ci/cd, so some ropes in the right direction would be helpful 😁
17 replies
SSolidJS
Created by ARSON on 5/6/2024 in #support
porting over some ssr react code, getting different behavior
No description
8 replies
TTCTheo's Typesafe Cult
Created by ARSON on 2/17/2023 in #questions
recommendations for writing a simple & scalable notification system?
i'm working on a blog/forum site & about to start on a simple notification system that sends out notifications to followers when an author publishes a post i was thinking of just creating a little temporary store in my database, creating a notification document with a unique in it, & then appending the id of that document into a follower's notifications list in code i guess it would look something like
app.post("/", (req, res) => {
let post = new Post;
// ...
await post.save();

let notification = new Notification;
// ...
await notification.save();

// a queue is definitely more scalable, but just sticking this here to get the point across
await Users.updateMany(
{ "_id": { "$in": req.user.followers } },
{ "$push": { "notifications": notification._id } }
).exec();

return res.send("ok");
});
app.post("/", (req, res) => {
let post = new Post;
// ...
await post.save();

let notification = new Notification;
// ...
await notification.save();

// a queue is definitely more scalable, but just sticking this here to get the point across
await Users.updateMany(
{ "_id": { "$in": req.user.followers } },
{ "$push": { "notifications": notification._id } }
).exec();

return res.send("ok");
});
as stated in the comment above updateMany, i've been thinking about writing a queue to schedule these notifications in batches so that my endpoint doesn't bottleneck & kill the server but as i think about it, if the amount of users dramatically scales up, would the only other option be to use a dedicated server/service for notifications? there are just a lot of questions floating around in my head when it comes to scaling the system for potentially hundreds of thousands of users if you guys have any recommendations or experience, please let me know asap πŸ™
1 replies
TTCTheo's Typesafe Cult
Created by ARSON on 2/14/2023 in #questions
chrome -internal-autofill-selected
1 replies
TTCTheo's Typesafe Cult
Created by ARSON on 2/1/2023 in #questions
tips on getting file sizes down in a nextjs 13 project?
1 replies
TTCTheo's Typesafe Cult
Created by ARSON on 1/6/2023 in #questions
chrome rendering fuzzy bold fonts
4 replies