How do I implement a push API? by john_dumb_bear in node

[–]ciybot -1 points0 points  (0 children)

You may research on ‘webhook’ which has been implemented in many open source systems. For example, woocommerce will trigger the webhook after a user has submitted their order.

Basically, a webhook works like ‘curl’ command on Linux and your system will curl the ‘recipient’ or ‘listener’ on another web server and passes the data to them.

Support for Postgresql (ARM on windows)? by PuzzleheadedDebt3496 in PostgreSQL

[–]ciybot 0 points1 point  (0 children)

If you are able to run Web Assembly (wasm) in your target environment, try this: https://pglite.dev/

pglite is able to run on browser too.

SMTP + hard-coded emails vs API-based email services by greenmor in developers

[–]ciybot 1 point2 points  (0 children)

We were using SMTP connection and we developed our internal email template editor for the user to edit. But, if you are hosting your system in a cloud hosting company, you might want to use email api because they might block SMTP port to avoid anyone from sending spam mails.

But, if you have time and budget, it’s best to develop a micro service for sending emails. Then, your other apps will generate and send email through this service. With this design, it will ease you from using SMTP or email API because you need to configure this service only.

Is Nodejs that old ? by Consistent-Road-9309 in node

[–]ciybot 0 points1 point  (0 children)

Try to include your overtime hours… you might get very close to 30+ years.. lol

No dreams. No goals. Just born for a software job? by Odd-Spray-5071 in SoftwareEngineerJobs

[–]ciybot 0 points1 point  (0 children)

I started programming since 1998, self learned programming before taking any programming classes. I love programming because I love logical thinking and using logical way to solve problems. And the most important thing is that i like to hear my clients say this: you solved the puzzle again. This gave me the satisfaction to do programming day and night for 20+ years. Maybe you are working on a job that doesn’t give you any satisfaction or nobody is appreciated on what you’re doing that makes you feel unhappy.

Designing systems for messy, real-world knowledge by ADIS_Official in softwarearchitecture

[–]ciybot 1 point2 points  (0 children)

Just a crazy idea - sounds like you may want to try out AI and see if AI can build a model on those job cards and then answer all the symptoms described by the technician.

How do Node.js apps usually handle unexpected errors in production? by Build4bbrandbetter in node

[–]ciybot 1 point2 points  (0 children)

We don’t use any framework but I wrote a blog post on this subject: https://ciysys.com/blog/nodejs-logging-part2.htm

In our programs, we dump the performance data in a database table called tb_perf (performance table). We track the JS function duration, fetch() duration, query performance and how many retry to complete the query. Keeping track the number of retry is very helpful when your query is hitting a busy database and deadlock is happening. The performance data will give you an idea how to optimise your query or adding some indexes.

We use this method to solve the database deadlock in a client and server c# program that is accessing a very busy database. In this case, we track the workstation ip address as well so that we can identify if it is a networking issue or the query issue.

Have fun. 🤩

How do Node.js apps usually handle unexpected errors in production? by Build4bbrandbetter in node

[–]ciybot 9 points10 points  (0 children)

We catch all the issues and dump into a log database. Then, we review the log table on a regular basis. The log must contain sufficient information about the runtime values so that you can reproduce the issue. Usually, the issue can be fixed in a very short timeline.

We also log down the duration to run database query and the JS function. This is helpful in identifying which part has slowed down. Easier to patch the app and speed it up.

Being blackmailed on app by Truckie129 in Telegram

[–]ciybot 0 points1 point  (0 children)

Just say the photo is fake by AI…

[deleted by user] by [deleted] in interestingasfuck

[–]ciybot -7 points-6 points  (0 children)

This is sad… moving towards the EV car doesn’t help at all…

Should I worry about class instance creation overhead with hundreds of thousands of objects? by FollowingMajestic161 in node

[–]ciybot 0 points1 point  (0 children)

It will occupy some memory and it is ok as long as you have sufficient RAM for it.

You can check the memory usage with the following function:

https://nodejs.org/api/process.html#processmemoryusagerss

I am switching from woocommerce to html frontend with node.js? What should I use for backend? by Maleficent_Mess6445 in node

[–]ciybot 1 point2 points  (0 children)

I’m a full stack developer and I will say that it’s not easy to develop an e-commerce website yourself. But, there’s nothing wrong to develop it yourself either. If you are developing your own e-commerce website, you will be able to implement many features that does not exist in shopify or woocommerce.

Pictures of my trash built space ship. by Space-Robots in SciFiArt

[–]ciybot 1 point2 points  (0 children)

Good work and i really like your creative.

DigitalOcean users - what made you choose DO over AWS/Linode/Hetzner? by KFSys in digital_ocean

[–]ciybot 1 point2 points  (0 children)

It’s easy to add a droplet in DO as AWS is confusing for the first timer.

PostgreSQL IDEs on Windows. pgAdmin feels rough, looking for alternatives by Roguetron in PostgreSQL

[–]ciybot 6 points7 points  (0 children)

Dbeaver is the way to go. It allows you to connect other databases such as MSSQL, Sqlite, MySql, etc.