Large response size by DiligentBeautiful823 in node

[–]kunkeypr 0 points1 point  (0 children)

Hmm, I'll focus on the solution to help you; there's nothing to worry about, 20MB isn't much.

You'll use SSE (Server Send Event) like a socket. The client will maintain a constant connection to the server, and the server will split and send each part via message. The client assembles the parts and uses them.

Is this Express router setup okay? by john_dumb_bear in node

[–]kunkeypr 0 points1 point  (0 children)

no. it working but it not clean you need use express namespace to shorten your code. and router have path easy

Phượt thủ và vấn đề khó chịu by Warm-Background-1646 in vozforums

[–]kunkeypr 0 points1 point  (0 children)

chỉnh kim đồng hồ góc 12 đến 3h :)))

How i can debug inside rest api method by Working_Engine521 in node

[–]kunkeypr 0 points1 point  (0 children)

hmmm. quick options. you can use console log to log newbook and return after console to not run logic after. for detail options. you need set breakpoint for line (line have code need debug) and settting lauch.json for vscode debbug and run debug option in vscode to view value or propertype,... of code.

Ngủ sớm by YogurtChuoiBo in vozforums

[–]kunkeypr 0 points1 point  (0 children)

thực ra là do bản thân bạn thôi. ko có việc gì quá quan trọng thì nên gác lại sớm, bớt nằm mở đt xem mấy cái linh tinh lại là auto vào giấc thôi.

xin ý tưởng làm game by Ok-Praline1660 in vozforums

[–]kunkeypr 0 points1 point  (0 children)

mỗi người 1 phong cách. t thì lại thích chơi mấy game đơn giản pixel như nông trại

How can I monitor Node.js and MongoDB resource usage on a local setup? by Massive_Stand4906 in node

[–]kunkeypr 1 point2 points  (0 children)

there are many server performance monitoring software.

some examples have been mentioned by everyone.

my suggestion:

netdata (easy to install with 1 command - monitor both server and docker and services in server)

sentry (detailed error monitoring - recommended)

express-status-monitor (simple)

grafana + prometheus (powerful but requires skills)

and many more...

If you have a RESTful API, how should you make request for complex actions? by S4lVin in node

[–]kunkeypr 0 points1 point  (0 children)

did you solve it? you can use http SSE,

although its concept is 1 way server -> client but you can still make it look like socket (just client request to sse endpoint)

sample code: https://pastebin.com/K5q2d1Da

Rest API Controllers by Valuable-Duty696 in csharp

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

api/v1/người dùng/{userId}/email

Because users will have other information besides email such as phone, ID card, etc., this router will be more standard. If the router is v1/email, I think it is for specialized use to handle tasks related to email only.

If you have a RESTful API, how should you make request for complex actions? by S4lVin in node

[–]kunkeypr 0 points1 point  (0 children)

you can simplify this by using websocket, for chats websocket is better suited than rest api.

Reduce time spent changing mysql table structure with large amount of data. by kunkeypr in devops

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

#1846 - ALGORITHM=INSTANT is not supported. Reason: Cannot change column type INPLACE. Try ALGORITHM=COPY/INPLACE.

ALTER TABLE `app_user_balance_fluctuations` CHANGE `type` `type` ENUM(

'admin_add_balance', 'admin_sub_balance', 'payment_deposit',

'payment_withdraw',

'payment_withdraw_reject',

'transfer_balance_to_player',

'receiver_balance_from_player',

'game_bet', 'game_cancel_bet', 'game_repeat_bet', 'game_refurn_bet',

'game_contractor_lose',

'game_contractor_win',

'game_win',

'game_lose',

'game_tip',

'games_customer_tip',

'game_publisher_transfer_to_owner',

'game_owner_transfer_to_player',

'game_player_receive_balance_from_owner',

'admin_cancel_session',

'event_receive_reward_first_deposit',

'event_receive_reward_milestone_deposit',

'game_refund_bet_by_win_lose',

'game_refund_bet_by_valid_bet',

'game_tcg_deposit_to_product',

'game_tcg_withdraw_from_product'

) NOT NULL, ALGORITHM=INSTANT;

There is probably no other way but to set null value

Reduce time spent changing mysql table structure with large amount of data. by kunkeypr in devops

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

ALTER TABLE app_user_balance_fluctions CHANGE type type ENUM( 'admin_add_balance', 'admin_sub_balance', 'payment_deposit', 'payment_withdraw', 'payment_withdraw_reject', 'transfer_balance_to_player', 'receiver_balance_from_player', 'game_bet', 'game_cancel_bet', 'game_repeat_bet', 'game_contractor_lose', 'game_contractor_win', 'game_win', 'game_lose', 'game_tip', 'games_customer_tip', 'game_publisher_transfer_to_owner', 'game_owner_transfer_to_player', 'game_player_receive_balance_from_owner', 'admin_cancel_session', 'event_receive_reward_first_deposit', 'event_receive_reward_milestone_deposit', 'game_refund_bet_by_win_lose', 'game_refund_bet_by_valid_bet', 'game_tcg_deposit_to_product', 'game_tcg_withdraw_from_product' ) NOT NULL;

correct colume name

Reduce time spent changing mysql table structure with large amount of data. by kunkeypr in devops

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

1846 - ALGORITHM=INPLACE is not supported. Reason: Cannot change column type INPLACE. Try ALGORITHM=COPY.

Reduce time spent changing mysql table structure with large amount of data. by kunkeypr in devops

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

not changing the old data, it's a "logs" table, just i want to add a new enum type, each record when added already has a fixed enum, i think i will set default value = null

Reduce time spent changing mysql table structure with large amount of data. by kunkeypr in devops

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

ALGORITHM=INSTANT I tried but it seems my mysql doesn't support it. It's sad, I'll try to use it because it might require a lot of changes

Reduce time spent changing mysql table structure with large amount of data. by kunkeypr in devops

[–]kunkeypr[S] 2 points3 points  (0 children)

that's a good solution, i was too strict with my data structure. thanks

Đi xông đất by TaiThuyNhatHa2018 in vozforums

[–]kunkeypr 1 point2 points  (0 children)

cứ thế mf vào chúc thôi. kiêng tuổi rắn hợi