Afi SV
afiiii.bsky.social
Afi SV
@afiiii.bsky.social
Cartegan Software | Get the Ultimate SaaS guide on the internet (link below)

https://cartegan.com/a
workflow orchestration tools

Temporal
Cadence
Apache airflow
Camunda
Conductor
Luigi
Step funcitons (aws)
August 16, 2024 at 8:54 AM
How's life everyone?
August 15, 2024 at 10:08 AM
Subscribe to my YouTube channel. I make videos on React, Remix & Software Development www.youtube.com/@afiiiiiiiii...
Afi SV | Cartegan Software
www.youtube.com
July 29, 2024 at 2:49 PM
Prevent alert fatigue by using Sentry's `Rate Limits` to control the volume of events from noisy parts of your app. Stay sane! 🚦🧘‍♂️

#Sentry
July 29, 2024 at 4:00 AM
Reduce log noise by excluding health check paths:

`location /health { access_log off; }` – cleaner logs, happier debugging! 🧹📉

#nginx
July 29, 2024 at 2:00 AM
Advanced tip:

Integrate Sentry with your logging framework (e.g., Winston, Log4j) to capture detailed logs on error events. Context is king! 📜👑

#Sentry
July 29, 2024 at 12:00 AM
Want faster response times?

Serve your static files directly from memory with `open_file_cache max=1000 inactive=20s;` 🚀🗃️

#nginx
July 28, 2024 at 10:00 PM
Senior hack:

Use Sentry's `Breadcrumbs` to track user's journey before the error occurred. Gain insights with `Sentry.addBreadcrumb({ message: 'User clicked X' });` 🔄🕵️‍♂️

#Sentry
July 28, 2024 at 8:00 PM
July 28, 2024 at 7:00 PM
Senior tip:

Use `map` and `geo` directives in Nginx for granular IP-based routing without if-else spaghetti. Simplify your configs! 🌐💡

#nginx
July 28, 2024 at 4:23 PM
Subscribe to my YouTube channel. I make videos on React, Remix & Software Development www.youtube.com/@afiiiiiiiii...
Afi SV | Cartegan Software
www.youtube.com
July 28, 2024 at 2:13 PM
PostgreSQL’s TOAST can compress large rows transparently.

Use it wisely to save storage space
July 28, 2024 at 4:00 AM
Tired of manually managing related data deletions?

Use foreign key ON DELETE CASCADE to automate cleanups.

Just be careful with deep relationships—it’s a double-edged sword. 🔗⚔️
July 28, 2024 at 2:00 AM
Ever used a GIN index on JSONB data?

It’s like a speed booster for searching through complex JSON structures.

Just remember: indexing every key can get pricey. 💨💸
July 28, 2024 at 12:00 AM
Pro tip:

Set function volatility levels correctly in PostgreSQL. Marking a function as STABLE or IMMUTABLE can seriously boost query performance by letting the planner cache results.
July 27, 2024 at 8:00 PM
July 27, 2024 at 7:00 PM
inherited table?

It is a child table that inherits columns, constraints, and indexes from a parent table

Great for table hierarchy and efficient partitioning of data
July 27, 2024 at 4:02 PM
Subscribe to my YouTube channel. I make videos on React, Remix & Software Development www.youtube.com/@afiiiiiiiii...
Afi SV | Cartegan Software
www.youtube.com
July 27, 2024 at 2:30 PM
Do you wanna colocate routes in a folder like

_auth+
user+

check out remix-flat-routes
July 27, 2024 at 4:00 AM
Promise concurrency primitives for React Suspense

These work just like the Promise.all, Promise.race, Promise.any, and Promise.allSettled methods, but are suitable to be used inside of React 18

https://github.com/tom-sherman/suspend-concurrently
July 27, 2024 at 2:00 AM
I think you are already using it!
GitHub - sergiodxa/remix-utils: A set of utility functions and types to use with Remix.run
A set of utility functions and types to use with Remix.run - sergiodxa/remix-utils
github.com
July 26, 2024 at 10:00 PM
July 26, 2024 at 7:00 PM
HTTP vs Server-side Cache

Use server-side cache when the performance problem you want to solve is the database query, or API fetch taking a lot of time

User HTTP cache when you need to reduce the number of requests reaching your server or when your data is public

- sergiodxa
July 26, 2024 at 4:25 PM
Subscribe to my YouTube channel. I make videos on React, Remix & Software Development www.youtube.com/@afiiiiiiiii...
Afi SV | Cartegan Software
www.youtube.com
July 26, 2024 at 2:05 PM
This is how I create singletons

export function singleton<Value>(name: string, value: () => Value): Value {
const yolo = global as any;
yolo.__singletons ??= {};
yolo.__singletons[name] ??= value();
return yolo.__singletons[name];
}
let db
db = singleton("db", () => {})
July 26, 2024 at 4:00 AM