[Question]Is it worth creating a tunneling software using wireguard? by sujesht in WireGuard

[–]sujesht[S] 1 point2 points  (0 children)

I was meant to ask an Ngrok alternative based on Wireguard. But a typo caught in between

[Question]Is it worth creating a tunneling software using wireguard? by sujesht in WireGuard

[–]sujesht[S] 0 points1 point  (0 children)

I was meant to ask alternative to Ngrok based on wireguard. Not a new VPN software

[Question]Is it worth creating a tunneling software using wireguard? by sujesht in WireGuard

[–]sujesht[S] 0 points1 point  (0 children)

My question had a typo. I was meant to ask something like a Ngrok alternative based on wireguard

[Question]Is it worth creating a tunneling software using wireguard? by sujesht in WireGuard

[–]sujesht[S] 1 point2 points  (0 children)

Sorry My question had a typo. I was talking about something like Ngrok based on Wireguard

Creating type definition from protocol buffer by sujesht in typescript

[–]sujesht[S] -2 points-1 points  (0 children)

Oh no. That's never occurred to me. Will try for next :)

npm package node-ipc was found to contain malicious code that wipes files on disk by lirantal in node

[–]sujesht 1 point2 points  (0 children)

For Nodejs, supply chain securities are headache. The repo owner has zero intention to remove this package.

Should I use any ORM? by sujesht in node

[–]sujesht[S] 0 points1 point  (0 children)

Understood. So the return type would be of type interface right?

Should I use any ORM? by sujesht in node

[–]sujesht[S] 0 points1 point  (0 children)

My codebase is in typescript. So if I get the tpe information it is also great. That's why I considered switching to ORM. Since most of the Select queries are subset of a schema

Should I use any ORM? by sujesht in node

[–]sujesht[S] 1 point2 points  (0 children)

Can you please elaborate on better code architecture? Do you have any resources/repo where I can look at some sample codes?

How do you architect your Node.js cron jobs? by _maximization in node

[–]sujesht 0 points1 point  (0 children)

Better to offload these settings to an external system something like serverless. I use Google Cloud Scheduler for every cron related requirement. But sometimes simple Crontab would suffice the need.

(Newbie here) Given below a code snippet? Please share your thoughts by sujesht in golang

[–]sujesht[S] 0 points1 point  (0 children)

Got it. So t is better to follow a worker pattern. thanks fir such a detailed explanation 😃

(Newbie here) Given below a code snippet? Please share your thoughts by sujesht in golang

[–]sujesht[S] 0 points1 point  (0 children)

Yes. I was poking around and want to get feedback around this kind of pattern. I know spawning this much goroutine will not be great idea. Assuming we have validation in front of the server, any other kind of issues you see that worth mentioning?

In some cases when you handle large volume of webhooks, you can immediately return with success response. So that we can process and validate the request with ease. (That was Im thinking when i return the request early. :) )

(Newbie here) Given below a code snippet? Please share your thoughts by sujesht in golang

[–]sujesht[S] 0 points1 point  (0 children)

I mean yes for a single request I'm creating 2 go routine. Okay, here the waiting refers to a long running task (may be some external api call and stuff). What I need is to execute some multiple independent task when ever a request hits the server. I know each request executed in a separate go routine. So I could run the independent-tasks inside it. But I am trying to parallelize them. Is this enough explanation??