scalability

Delphi : Sorted List

社会主义新天地 提交于 2021-02-07 20:30:41
问题 I need to sort close to a 1,00,000 floating point entries in Delphi. I am new to Delphi and would like to know if there are any ready made solutions available. I tried a few language provided constructs and they take an inordinate amount of time to run to completion.(a 5-10 sec execution time is fine for the application) 回答1: why not just implement a quick Sort algorithm? see this simple code program ProjectSortFoat; {$APPTYPE CONSOLE} uses SysUtils; procedure QuickSort(var List: array of

MySql vs NoSql - Social network comments and notifications data structure and implementation

六眼飞鱼酱① 提交于 2020-05-25 08:25:20
问题 I am really finding it tough to figure out the insights about how does a social networking site (Facebook being a reference) manage their comments and notifications for its users. How would they actually store the comments data? also how would a notification be stored and sent to all the users that. An example scenario would be that a friend comments on my status and everyone that has liked my status including me gets a notification for that. Also each user has their own read/unread

MySql vs NoSql - Social network comments and notifications data structure and implementation

一世执手 提交于 2020-05-25 08:25:01
问题 I am really finding it tough to figure out the insights about how does a social networking site (Facebook being a reference) manage their comments and notifications for its users. How would they actually store the comments data? also how would a notification be stored and sent to all the users that. An example scenario would be that a friend comments on my status and everyone that has liked my status including me gets a notification for that. Also each user has their own read/unread

Can relational database scale horizontally

|▌冷眼眸甩不掉的悲伤 提交于 2020-04-07 12:49:11
问题 After some googling I have found: Note from mysql docs: MySQL Cluster automatically shards (partitions) tables across nodes, enabling databases to scale horizontally on low cost, commodity hardware to serve read and write-intensive workloads, accessed both from SQL and directly via NoSQL APIs. Can relational database be horizontal scaling? Will it be somehow based on NoSQL database? Do someone have any real world example? How can I manage sql requests, transactions, and so on in such database

What databases do the World Wide Web's biggest sites run on? [closed]

ぃ、小莉子 提交于 2020-04-05 07:03:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . This question is meant to serve as a list of databases and their configurations that the major web sites use and would be a great reference for anyone thinking of scaling their web site to the size of Twitter, Facebook or even Google. Please keep your answers to a minimum and be sure to cite any sources used.

Reasons for NOT scaling-up vs. -out?

柔情痞子 提交于 2020-02-01 03:22:16
问题 As a programmer I make revolutionary findings every few years. I'm either ahead of the curve, or behind it by about π in the phase. One hard lesson I learned was that scaling OUT is not always better, quite often the biggest performance gains are when we regrouped and scaled up. What reasons to you have for scaling out vs. up? Price, performance, vision, projected usage? If so, how did this work for you? We once scaled out to several hundred nodes that would serialize and cache necessary data

User-files organization in a Web server

感情迁移 提交于 2020-01-24 22:44:27
问题 I'm developing a Web application where users can upload files. Suppose to have different file categories, e.g. audio and docs . I guess I can put all the files that belongs from a category in a unique folder, e.g.: audio_dir -file_from_user1.mp3 -another_file_from_user1.mp3 -file_from_user2.mp3 -file_from_user4.mp3 docs_dir -file_from_user1.doc -file_from_user5.pdf The other solution I'm evaluating uses a third level, where files are grouped by users. audio_dir user1_dir -file_from_user1.mp3

Nanomsg multicast bandwidth issue

泪湿孤枕 提交于 2020-01-16 09:08:16
问题 Can I have pure multicasting in pub/sub protocol of the nanomsg. As there can be N subscribers interested in a particular data for a single publisher, the same subscribed data is flowing in N different streams.If my bandwidth for a single stream is 10MB then the total bandwidth required for N streams is 10*N,thus there is a increase in the bandwidth .Can we reduce this bandwidth as we do in the multicasting?? Can anyone help me regarding this issue?? 回答1: As far as I understand the PUB/SUB

How to parse JSON with lift-json in Scala?

这一生的挚爱 提交于 2020-01-15 15:46:15
问题 When I am trying parse the json object I am getting the below error. import net.liftweb.json._ object SarahEmailPluginConfigTest { implicit val formats = DefaultFormats case class Mailserver(url: String, username: String, password: String) val json = parse("""{"url": "imap.yahoo.com", "username": "myusername", "password": "mypassword" }""") def main(args: Array[String]) { val m = json.extract[Mailserver] println(m.url) println(m.username) println(m.password) } } I have added "lift-json_2.9.0

Neo4j Scalability

倾然丶 夕夏残阳落幕 提交于 2020-01-13 18:38:27
问题 I have read this article. It states, that Neo4j can scale horizontally, but only to increase read performance and fault tolerance... so the stored graph is copied to each server in a cluster. But what if I have a dataset that is larger than one server can store? Does Neo4j fail in this situation? Do I have to scale vertically in this situation and buy larger HDD? Thank you 回答1: Yes. You need enough hard drive space to contain the full graph on all nodes of the cluster, no way around that. If