I'm interested to comparison between various approaches to scalability & concurrency including CCR & DSS framework model. I would be especially interested with comparison with Hadoop and Erlang style concurency
How does CCR & DSS toolkit model compare to other scalability & concurency approaches?
1.2k Views Asked by sumek At
1
There are 1 best solutions below
Related Questions in CONCURRENCY
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- How to return blocking queue to the right object?
- How to ensure data synchronization across threads within a "safe" area (e.g not in a critical section) without locking everything
- Breakpoint "concurrency" in Intellij
- java, when (and for how long) can a thread cache the value of a non-volatile variable?
- Reentrancy and Reentrant in C?
- How to do many simultaneous jsoup sessions (Spring boot project and concurrancy)
- Using multiple threads to print statements sequentially
- Interrupting long working thread
- Usage of C++11 std::unique_lock<std::mutex> lk(myMutex); not really clear
- Using getOrElseUpdate of TrieMap in Scala
- Concurrency of JPA when same DB used by other applications
- erlang processes and message passing architecture
- Erratic StampedLock.unlock(long) behaviour?
- Jersey Client, memory leak, static and concurrency
Related Questions in SCALABILITY
- ReactJS: How to optimise top-down render flow
- Implementing PeerJS Server with multiple dynos on Heroku
- How to asynchronously send data to a client via a different application path?
- How to profile Django's bottlenecks for scaling?
- Is it feasible to unpickle large amounts of data in a Python web app that needs to be scalable?
- How to scale database service in Cloudfoundry?
- netty client performance/scalability: Multi-threaded write to one channel vs. multiple channels
- Incremental update in column value in mysql. Concurrency Issues?
- In asp.net-mvc, what is the correct way to do expensive operations without impacting other users?
- Is there a scalable way to implement database search by multiple tags?
- Scalable way to search for (similar) strings in a database
- How to make Rest API more scalable using spring mvc on increasing number of requests at same time?
- horizontal scaling and vertical scaling naming convention
- Scalable video encoding?
- Is PHP on Laravel really that bad for high traffic
Related Questions in CCR
- Assembly language ccr trouble learning assembly
- Full memory barrier and ExclusiveReceiverGroup
- Elasticsearch 7.9 CCR changing the number of replicas on the leader index is not replicated by the follower index
- Does elasticsearch CCR feature replicates ILM?
- How to use PortMode.OptimizedSingleReissueReceiver in an Interleave? (Microsoft CCR)
- How to make batch remote calls to database or service?
- How to store the carry-bit from Assembly 68K CCR?
- Join on PortSet's in CCR
- Implement CCR Interleave Arbiter in F#
- Where can I find a all avp Pcap for Credit-Control-Request?
- SQLConnection Pooling - Handling InvalidOperationExceptions
- Asynchronous SQLCommand and CCR
- Concurrency and Coordination Runtime (CCR) Learning Resources
- Using the CCR with ASynchronous WCF Service
- Detecting Blocked Threads
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I have looked at CCR, DSS and Erlang, although of these, I have shipped only CCR into significant production code. I've never looked at Hadoop.
Erlang's concurrency derives from its implementation of the Actor model. Each 'process' has a mailbox and retrieves messages from it, one at a time. A process with no messages to handle blocks no thread. Conversely, processes with work to do are scheduled across available cpu with none of the underlying machinery exposed. Additionally, processes communicate via message-passing with either cloning/immutability ensuring that P1 and P2 never logically share the messages that pass between them.
My feeling is that it is the non-blocking nature of message sending and receiving that gives Erlang its reputation for scalability on a single (possibly multi-core) machine. Essentially, processes with work to do are scheduled efficiently across the available resources and quiescent processes consume nothing but memory. By processing one message at a time, each guaranteeing message stability, the developer no longer has to worry about things like 'race-conditions'.
CCR is a set of low-level asynchronous message passing primitives. One of the simpler ones is Receive that does a receive a la Erlang. But there are more sophisticated primitives, such as Join (receive a message all of some channels) and Choice (receive a message from any of some channels), which can be nested and composed in interesting ways. These primitives are also non-blocking. Receivers generate tasks (to handle the messages) into 1..n task queues, which are serviced by a small number of threads.
My guess is that, ignoring (important!) platform differences, the basic task-scheduling routines of each are in basically in the same ball-park. However, Erlang is a language and a platform with a fixed (Actor) model baked in. The CCR is neither of these things, its just a library and you can use/abuse it more freely.
DSS is a programming model, that builds on CCR. It has services (Erlang = processes), it mandates asynchronous message passing (with full cloning by default) as the only form of inter-service communication, and the only handle the outside world has to a service is its URI (Erlang = PID). Like Erlang, there is essentially no difference between invoking a local service and remote one, although (de)serialisation occurs in the latter case.
DSS also has a RESTful model, meaning that services typically expose a fixed and common set of operations, and that the state of the service should be considered a resource manipulated by these operations. Contrast this with Erlang, where arbitrary messages can be sent to a process. DSS services can use the full set of CCR primitives in talking to other services, which can be very useful for things like distributed scatter-gather operations.
Ultimately, DSS is just a framework with supporting libraries, not a language or VM, so there is considerably more 'ceremony' involved in writing even a single DSS service as opposed to writing an Erlang process.
In terms of concurrency, all provide the primitives required to write code that is safe and efficient under multiple threads of execution, without worrying about those threads of execution. I think that's where most developers want to be heading.
In terms of scalability, that's a tougher one to answer as that's as much about system design as it is the tools used. Do you mean scalability on a single node, i.e. as you add cores, or as you add nodes? CCR has nothing to say about the latter. Both DSS and Erlang support fairly efficient binary formats for wire transmission. DSS inherits its resource-oriented view of the world directly from http, which should tell you something about its potential scalability, but it does this at some restrictions in the programming model.
A couple of technical points. A single DSS service consumes more memory (~2K) than a single erlang process (300-400 bytes). Also, each DSS service gets its own task queue and there's an upper limit (~10000) on the number of task-queues that can be efficiently processed by the CCR. I don't have numbers on any such upper limits for Erlang but suspect it might be higher than this.
Having said all this, if you're on the .NET platform you'd be doing yourself a favour by taking a serious look at the CCR. I've found it to be very powerful, especially for reactive event-driven programs.