2PC vs Sagas (distributed transactions)

In my understanding (not a big user of 2PC since I consider it limiting): Typically, 2PC is for immediate transactions. Typically, Sagas are for long running transactions. Use cases are obvious afterwards: 2PC can allow you to commit the whole transaction in a request or so, spanning this request across systems and networks. Assuming each … Read more

Apache Spark vs Akka [closed]

Apache Spark is actually built on Akka. Akka is a general purpose framework to create reactive, distributed, parallel and resilient concurrent applications in Scala or Java. Akka uses the Actor model to hide all the thread-related code and gives you really simple and helpful interfaces to implement a scalable and fault-tolerant system easily. A good … Read more

Meaning of inter_op_parallelism_threads and intra_op_parallelism_threads

The inter_op_parallelism_threads and intra_op_parallelism_threads options are documented in the source of the tf.ConfigProto protocol buffer. These options configure two thread pools used by TensorFlow to parallelize execution, as the comments describe: // The execution of an individual op (for some op types) can be // parallelized on a pool of intra_op_parallelism_threads. // 0 means the … Read more

What are workers, executors, cores in Spark Standalone cluster?

Spark uses a master/slave architecture. As you can see in the figure, it has one central coordinator (Driver) that communicates with many distributed workers (executors). The driver and each of the executors run in their own Java processes. DRIVER The driver is the process where the main method runs. First it converts the user program … Read more

Explaining Apache ZooKeeper

In a nutshell, ZooKeeper helps you build distributed applications. How it works You may describe ZooKeeper as a replicated synchronization service with eventual consistency. It is robust, since the persisted data is distributed between multiple nodes (this set of nodes is called an “ensemble”) and one client connects to any of them (i.e., a specific … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)