I am developing a service that needs to be scalable on a Windows platform.
Initially, it will receive approximately 50 connections in seconds (each connection will send data of about 5 KB), but it must be scalable to receive more than 500 future ones.
It is impractical (I think) to save the received data into a common database such as Microsoft SQL Server.
Is there any other solution for saving data? Given that he will receive more than 6 million "records" per day.
There are 5 steps:
My preliminary decision:
6 million records per day do not seem particularly huge. In particular, this is not 500 per second for 24 hours a day - do you expect traffic to be "bloated"?
- . , , . / . .
, .
(, , "" ) . , , , , ( , ), .
, , ( ). , , .
, . , , , , .
, , , .
:
1.)2.)3.)
This will save you from having to request it if you already have one. I would be more worried about your table structure and your database machine, and then about the actual thread. I am sure your inserts will be as cheap as possible. If this is not possible, then the order of work makes sense. I would not use the message queue myself. Assuming you have a decent SQL Server machine, 6 million records per day should be good if you don't write a ton of data in each record.
Source: https://habr.com/ru/post/1714427/More articles:SQL - Optimizing the performance of bulk inserts and large joins? - sqlΠΠΎΠΊΡΠΌΠ΅Π½ΡΡ Ρ Π²ΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ MFC - ΠΊΠ°ΠΊ Π²ΠΊΠ»ΡΡΠΈΡΡ ΠΊΠ½ΠΎΠΏΠΊΡ ΡΡΠ΅Π΄Π½Π΅Π³ΠΎ ΠΌΡΡΠΈ Π΄Π»Ρ Π·Π°ΠΊΡΡΡΠΈΡ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°? - mfcWhat causes the value converter to start? - data-bindingHow to configure N2 CMS in a "corporate" environment? - asp.netEditing a jqGrid form with drop-down lists - how to set the initial value - javascriptJava 5: java.util.concurrent.FutureTask - semantics of cancel () and done () - javaAuto spacing for flowchart - javascriptHow to get interface name at runtime? - interfaceExecute function for each list item in powershell - powershellΠΡΠΆΠ΅Π½ PHP ΠΈΠ»ΠΈ ΠΊΠΎΠ΄ Java Π΄Π»Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ ΠΈΠ½ΡΠ΅ΡΠ½Π΅Ρ-ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠΉ - javaAll Articles