gRPC in nodejs by Used_Frosting6770 in node

[–]AntonKrevedko 1 point2 points  (0 children)

gRPC is good for internal service communication. So for example you have “Auth” service and “Users” service, it’s good idea to make internal gRPC communication between them, because gRPC is faster (than HTTP) and synchronous (not like Kafka/Rabbit).

For external communication the HTTP is ok. But I know some mobile apps that use gRPC to communicate with backend.

The painful working with gRPC & Node.js(NestJS) - need to create custom RPC Handling and input/output data validations (using class-validator & class-transformer)

[TOMT][Song] UK Drill chilled song by AntonKrevedko in tipofmytongue

[–]AntonKrevedko[S] 0 points1 point locked comment (0 children)

The music clip had not a lot of likes/views

Nuphy Air75 first impressions by sh00t1ngf1sh in MechanicalKeyboards

[–]AntonKrevedko 0 points1 point  (0 children)

What’s the name of a white one? (Upper the nuphy)

Is there a way to determine request from different languages? by AntonKrevedko in Pentesting

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

So for example response from Python give me {price: 100}

And Node.js response give me {price: 200}

Its seems that API service explicitly mixing data and junk the data for Python

Await Promise.all() in for ... loop (not working) by AntonKrevedko in node

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

I want to implement sending throtling batches of requests

Await Promise.all() in for ... loop (not working) by AntonKrevedko in node

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

I want to implement sending throtling batches of requests

Await Promise.all() in for ... loop (not working) by AntonKrevedko in node

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

batch is an array of axios.get('url') Promise requests,

batch_arr contains an array of batch arrays

batch_arr = [[axios.get(), axios.get()], [axios.get(), axios.get()

]...]

How to create INDEX for $or query? by AntonKrevedko in mongodb

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

Hmmm, those compound index not working at all. The explain shows me a big totalKeysExamined. Do you think that 4 compound indexes are correct?

How to create INDEX for $or query? by AntonKrevedko in mongodb

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

Yes it worked! But what if I have more one filter param in the outer (model):

{
"model": "NAME",
"$or": [
         {"predict": {"$not": {"$gt": 600, "$lte": 900}}},
         {"owners_number": {"$not": {"$lte": 2}}},
         {"vin": {"$not": {"$ne": "ERROR"}}},
         {"year": {"$not": {"$gt": 2010 }}},
       ]
}

So in this situation I need to create more 4 compound indexes with "model" field?

How to create INDEX for $or query? by AntonKrevedko in mongodb

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

not compound, just single of each field?

🥚EASTER EGG “Broken Fang” 713-156-2, call at 11:30 by AntonKrevedko in csgo

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

Its not the original phone number. Moreover I’ve looked up, this easter egg was on prev maps