This article explains Scala traits, how they extend Java interfaces with concrete method implementations, demonstrates their syntax and usage through code examples, and details the trait construction order during object initialization.
This article explains Scala's Iterator as a traversal tool rather than a collection, covering its core methods next and hasNext, demonstrating iteration with while loops, showing how to find min/max elements, obtain size, and providing a comprehensive table of common Iterator methods with code examples.
This article introduces Scala's collection library, explaining the distinction between mutable and immutable collections and detailing common types such as List, Set, Map, Tuple, Option, and Iterator, accompanied by example code for each.
This article introduces Scala arrays, covering their declaration, element access, multidimensional arrays, common operations such as iteration, summation, finding maximum values, concatenation, range creation, and a comprehensive list of array methods, all illustrated with clear code examples.
This tutorial explains how Scala treats strings as immutable Java objects, shows how to create and modify strings using literals, explicit types, and StringBuilder, demonstrates length retrieval, concatenation, formatted output, and provides a comprehensive list of java.lang.String methods usable in Scala.
This article explains the concept of closures, showing how a function can capture external variables, illustrated with Scala examples that demonstrate anonymous functions, free variables, and a complete runnable program producing expected output.
The article explains how loops enable repeated execution of code, describes common loop types such as while, do‑while, and for, outlines Scala’s loop control statements, and provides an example of an infinite while loop in Scala.
This article explains Scala's conditional constructs—including simple if statements, if‑else, if‑else‑if chains, and nested if‑else structures—by describing their syntax, providing clear code examples, and showing the corresponding command‑line compilation and execution results.
This article explains the distinction between methods and functions in Scala, demonstrates how to declare, define, and invoke them using val, def, and object syntax, and provides multiple code examples illustrating abstract methods, return types, Unit, and practical method calls.
This article introduces Scala’s built‑in data types, explains their characteristics, and demonstrates how to write various literals—including integers, floating‑point numbers, booleans, symbols, characters, strings, multi‑line strings, and null values—while also covering escape sequences and example code.
This article provides a comprehensive overview of Scala's built-in operators, detailing arithmetic, relational, logical, bitwise, and assignment operators with descriptions, example tables, and runnable code snippets illustrating their usage and precedence in practice.
This article explains the concepts of variables and constants in Scala, describes how to declare them using 'var' and 'val', outlines type declaration syntax, demonstrates type inference, and shows examples of multiple variable declarations and tuple assignments.
This article explains Scala's access modifiers—private, protected, and public—including their default visibility, stricter rules compared to Java, scoped protection syntax, and multiple code examples illustrating how these modifiers affect member accessibility in nested and package structures.
This guide walks you through installing Scala 2.11.7 on macOS/Linux and Windows, covering prerequisite Java setup, downloading the binary, configuring environment variables, and verifying the installation with command‑line checks.
This article provides a concise overview of Scala for beginners, covering its multi‑paradigm nature, object‑oriented and functional features, powerful static type system, extensibility mechanisms, and seamless Java interoperability, laying a foundation for later Spark learning.
This article explains Flink's window concepts—including time‑based, count‑based, tumbling, sliding, and session windows—provides practical Scala code examples for each type, and links to related resources on Flink basics, APIs, deployment, and advanced features.
This tutorial demonstrates how to use Apache Flink's Kafka connector to read data from Kafka topics with exactly‑once semantics, covering Maven dependencies, consumer configuration, checkpointing for fault tolerance, and a complete Scala example that writes the streamed data to HDFS.
To address the long processing time caused by uneven Spark partitions when reading Kafka via the Direct approach, this article explains the SPARK‑22056 solution that modifies KafkaRDD.getPartitions to support a configurable 'topic.partition.subconcurrency' parameter, discusses its trade‑offs, and presents alternative repartition and multithreading techniques.
The Gatling‑Dubbo plugin extends Gatling’s high‑performance, event‑driven load‑testing framework with a Dubbo protocol layer, providing protocol, action, and JsonPath‑based check components plus a HTTP‑like DSL, enabling asynchronous generic calls, response validation, throttling, and full example simulations for distributed Dubbo service testing.
This article explains the internal workflow of Spark Streaming task submission, detailing how StreamingContext, DStream, receivers, and output operators are transformed into RDD jobs, and includes annotated Scala code examples that illustrate each step of the process.
The article introduces Weiflow, a dual‑layer DAG‑based machine‑learning workflow framework designed for Sina Weibo, and explains how its modular XML configuration, Scala implementation, and integration with Spark, TensorFlow, Hive, Storm, and Flink improve development efficiency, scalability, and execution performance across the entire ML pipeline.
This article compares R, Python, Scala, and Java for big‑data projects, outlining each language’s strengths and weaknesses, and offers guidance on selecting the most suitable language based on project requirements, team expertise, and production needs.
This article shares practical strategies for learning a new programming language—summarizing, comparing, shifting mindsets, studying open‑source code, using analysis tools, and intensive practice—illustrated with concrete Java, Scala, and Go examples.
This guide explains how to use Transwarp Discover's rJava one‑stop feature to develop, package, and share custom Java/Scala machine‑learning algorithms—such as an improved K‑Means clustering—alongside built‑in libraries, enabling seamless integration and scalable data mining within the platform.
This article explains the internal design of Kafka's SocketServer, detailing its NIO‑based thread model with Acceptor, Processor, and Handler threads, the startup sequence, how connections are accepted and processed, and the role of RequestChannel in routing requests and responses between processors and handlers.
This tutorial guides readers through using Apache Spark and MongoDB to compute daily active user statistics, covering Spark fundamentals, a Spark‑vs‑Hadoop comparison, MongoDB use cases, environment setup, Scala code workflow, Maven compilation, and job submission on a YARN cluster.
Wix, the world’s largest DIY website‑building platform, transformed its monolithic Java stack into a 100‑plus microservice architecture built on Scala, Jetty, and Spring, supporting 60 million sites across 190 countries with robust media services, SDKs, and modern front‑end frameworks.
This article compares Java, Groovy, Scala, and Kotlin for Android development by examining minimal dependencies, code snippets for view lookup, click listeners, callbacks, community support, and preliminary metrics such as line count and compile speed, concluding that further analysis is needed.
This article compiles a comprehensive list of tutorials, books, online courses, and tools to help beginners get started with Apache Spark and the Scala programming language, including setup instructions, code snippets, and links to free and paid learning materials.
This article explains how Twitter’s open‑source Finagle framework, built on Netty and written in Scala/Java, provides a fault‑tolerant, protocol‑agnostic RPC layer with load balancing, metrics, tracing, and filters, enabling massive tweet traffic without latency or downtime.
This article examines how Tumblr handled rapid growth—processing 5 billion daily page views, 40 k requests per second, and terabytes of data—by evolving from a LAMP stack to a Scala‑based, Finagle‑driven distributed system with HBase, Redis, Kafka, and a cell architecture that supports massive real‑time dashboards.
This article explains how to use the open‑source Kiji framework together with HBase, Avro, and MapReduce to build a scalable, entity‑centric real‑time recommendation system that can instantly refresh suggestions based on user context and recent interactions.
The article explains how to leverage Apache Spark for machine‑learning tasks, large‑scale new‑word discovery, and simple intelligent question‑answering by using Spark‑Shell, Scala code, and word2vec‑based similarity, while sharing practical tips and performance considerations.
This article explains how to leverage Spark for machine learning, discover new terms from massive text corpora, and build intelligent question‑answer systems, sharing practical tips, performance considerations, and real‑world examples for data analysts and algorithm engineers.
Wacai’s architects outline six critical design decisions—including system layer separation, message passing, asynchronous processing, comprehensive data storage, robust security, and storage redundancy—that together enable a resilient, reactive financial platform capable of handling massive concurrent workloads.
This tutorial walks you through building a starter authentication application using Play Framework, Scala, Silhouette, and MongoDB, covering email sign‑up, password reset, OAuth1 Twitter login, and user‑aware views, while explaining Play's reactive, asynchronous architecture for scalable backend development.
Whitepages migrated several high‑traffic services from a Ruby monolith to Scala running on the Akka actor framework, achieving dramatically lower latency and higher throughput while sharing the practical benefits, challenges, and best‑practice insights they discovered during the transition.
This article explains how Apache Spark improves on Hadoop MapReduce by keeping intermediate data in memory, introduces the core RDD abstraction, compares Spark’s transformations and actions with Hadoop, and shows how Spark can run on Standalone, YARN, and various programming languages such as Scala, Java, and Python.