DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Enterprise AI Trend Report: Gain insights on ethical AI, MLOps, generative AI, large language models, and much more.

2024 Cloud survey: Share your insights on microservices, containers, K8s, CI/CD, and DevOps (+ enter a $750 raffle!) for our Trend Reports.

PostgreSQL: Learn about the open-source RDBMS' advanced capabilities, core components, common commands and functions, and general DBA tasks.

AI Automation Essentials. Check out the latest Refcard on all things AI automation, including model training, data security, and more.

Core Badge
Avatar

Arun Pandey

DZone Core CORE

|Accredited Investor| Enterprise Coach| Sr. TechLead| Topcoder Ambassador|

New York, US

Joined Mar 2016

About

Arun Pandey is a technologist, Enterprise coach and Accredited Investor by profession. He has been very hands-on with many of the technologies, including Java, Python, Blockchain, AI, and Machine learning. Arun holds a master's degree in software technology and several other credentials from top institutions, for e.g. Harvard University, University of Maryland, RIT, Rice Business School, University of Washington, ICAgile, Scrum Alliance, etc.

Stats

Reputation: 2527
Pageviews: 2.4M
Articles: 48
Comments: 16

Expertise

Team Management Expertise Icon

Team Management

  • Articles
  • Comments

Articles

article thumbnail
A Developer's Guide to Database Sharding With MongoDB
Database sharding improves performance by distributing data across multiple shards. Use MongoDB to easily implement various sharding strategies.
March 9, 2024
· 6,044 Views · 4 Likes
article thumbnail
Real-Time Communication Protocols: A Developer's Guide With JavaScript
Explore WebSocket for low latency communication, WebRTC for peer-to-peer streaming, and MQTT for IoT while implementing provided JavaScript examples.
February 29, 2024
· 6,523 Views · 5 Likes
article thumbnail
Architectural Insights: Designing Efficient Multi-Layered Caching With Instagram Example
Explore the concept of multi-layered caching from both architectural and development perspectives, focusing on real-world applications like Instagram.
February 27, 2024
· 13,075 Views · 4 Likes
article thumbnail
Microsoft Research Lab Structure: A Data-Driven Approach to Tech Leadership and Innovation
Microsoft Research's unique lab structure is designed to foster tech leadership and innovation. Let's explore its approach to autonomy, collaboration, and diversity.
February 12, 2024
· 3,058 Views · 2 Likes
article thumbnail
Advanced Brain-Computer Interfaces With Java
This article guides Java developers on building a brain-computer interface application using NeuroSky's MindWave Mobile headset.
February 11, 2024
· 7,940 Views · 6 Likes
article thumbnail
Building Your Own Automatic Garbage Collector: A Guide for Developers
Implementing a custom Java garbage collector requires deep JVM knowledge, exploration of OpenJDK, and understanding memory management principles.
January 14, 2024
· 12,559 Views · 3 Likes
article thumbnail
Advanced Content Prioritization Techniques for Web Developers
Optimize web performance using content prioritization, code splitting, image optimization, resource hints, and service workers for better user experience.
November 22, 2023
· 3,178 Views · 2 Likes
article thumbnail
Research Beats Best Practices: A Google Leadership Thought Process
Google's research-focused leadership outpaces traditional best practices, driving innovation through data-driven decisions and fostering a learning culture.
November 11, 2023
· 3,686 Views · 2 Likes
article thumbnail
Project Oxygen: Breathing New Life into Teams and Organizations
Project Oxygen identifies key managerial behaviors that boost team performance, fostering collaboration, communication, and professional growth in organizations.
November 9, 2023
· 2,996 Views · 2 Likes
article thumbnail
Exploring Lightweight Concurrency With Virtual Threads: A Developer-Agnostic Perspective
Virtual threads simplify concurrent programming, enhance scalability, and optimize resource usage in complex applications.
November 6, 2023
· 4,925 Views · 2 Likes
article thumbnail
TAO: A Comprehensive Look at Facebook's Distributed Data Store
TAO is Facebook's scalable, distributed data store, managing social graph objects and associations with a two-tiered caching mechanism for optimized performance.
November 5, 2023
· 3,432 Views · 3 Likes
article thumbnail
Developing Brain-Computer Interface (BCI) Applications With Java: A Guide for Developers
BCIs enable brain-device communication; Java aids development with libraries; challenges include signal quality and ethics.
November 1, 2023
· 7,198 Views · 4 Likes
article thumbnail
Mastering Backpressure in Java: Concepts, Real-World Examples, and Implementation
Backpressure balances data production and consumption, preventing system overload. Java's Flow API enables effective backpressure implementation in applications.
October 17, 2023
· 12,448 Views · 12 Likes
article thumbnail
Bloom Filters: Efficient Data Filtering With Practical Applications
Bloom filters enable efficient set membership testing with minimal memory, allow a small probability of false positives, and are used in spell checkers and CDNs.
October 10, 2023
· 5,970 Views · 5 Likes
article thumbnail
Fencing in Distributed Systems: Twitter's Approach
Fencing techniques effectively safeguard distributed systems, isolating faults and securing resources, as exemplified by Twitter.
October 6, 2023
· 3,750 Views · 2 Likes
article thumbnail
Split-Brain in Distributed Systems
Split-brain challenges distributed systems' data consistency; employing quorum-based techniques and consensus algorithms can mitigate potential issues.
October 5, 2023
· 3,991 Views · 3 Likes
article thumbnail
Gossip Protocol in Social Media Networks: Instagram and Beyond
Gossip protocol facilitates efficient information propagation in social media networks, offering fault-tolerance, scalability, and quick updates using Python examples.
October 5, 2023
· 9,039 Views · 4 Likes
article thumbnail
Leveraging Weka Library for Facebook Data Analysis
Leverage Weka library to analyze Facebook data, preprocess, perform feature selection, and clustering for insights into user behavior.
October 2, 2023
· 4,374 Views · 2 Likes
article thumbnail
Scalable Rate Limiting in Java With Code Examples: Managing Multiple Instances
Implement scalable rate limiting in Java using Token Bucket, Redis, and Gradle for high-performance and DoS attack protection.
October 2, 2023
· 5,944 Views · 3 Likes
article thumbnail
Building AI Applications With Java and Gradle
Explore AI development with Java and Gradle using popular libraries like Deeplearning4j, Weka, and Encog through practical code examples.
September 27, 2023
· 10,702 Views · 6 Likes
article thumbnail
Exploring Edge Computing: Delving Into Amazon and Facebook Use Cases
Edge computing enhances latency, bandwidth utilization, security, and scalability in data processing for companies like Amazon and Facebook.
September 20, 2023
· 5,873 Views · 5 Likes
article thumbnail
Agile Estimation: Techniques and Tips for Success
Agile estimation combines techniques and best practices for better project forecasting, aiding planning and decision-making.
September 19, 2023
· 18,255 Views · 7 Likes
article thumbnail
Securing Your Applications With Spring Security
Spring Security secures Java apps with authentication, authorization, and protection features, shown in an online banking example.
September 15, 2023
· 11,729 Views · 3 Likes
article thumbnail
Agile Metrics and KPIs in Action
Agile metrics and KPIs are vital for tracking project progress, optimizing processes, making data-driven decisions, and achieving improved results in Agile projects.
September 14, 2023
· 7,324 Views · 5 Likes
article thumbnail
Embracing Reactive Programming With Spring WebFlux
WebFlux enables efficient, scalable, reactive web applications with Spring, harnessing the power of non-blocking code, backpressure, and functional programming.
September 8, 2023
· 6,668 Views · 3 Likes
article thumbnail
Unleashing the Power of Microservices With Spring Cloud
Spring Cloud provides tools for building and managing microservices, making it easier to create scalable and maintainable applications.
September 7, 2023
· 15,434 Views · 13 Likes
article thumbnail
Technical vs. Adaptive Leadership
In the dynamic world of modern business, leadership requires a delicate balance between technical expertise and adaptive skills.
August 6, 2023
· 15,633 Views · 7 Likes
article thumbnail
Microservices With GraphQL
A developer goes through some Java and XML code used to create a basic microservice application that uses GraphQL to fetch data.
May 7, 2019
· 26,959 Views · 20 Likes
article thumbnail
Performance With Java8 Streams
Here, we take a look at the mechanisms of the three main factors in Java8 Streams added to boost application performance.
November 6, 2017
· 73,157 Views · 14 Likes
article thumbnail
Blockchain: An Introduction
Blockchain is one of the more promising technologies out there when it comes to cybersecurity. Read on to find you why, and what issues blockchain is facing.
August 24, 2017
· 24,835 Views · 38 Likes

Comments

Building AI Applications With Java and Gradle

Oct 03, 2023 · Arun Pandey

Sure, Milan. I'll take a look.

Technical vs. Adaptive Leadership

Aug 12, 2023 · Arun Pandey

I totally agree, and getting this kind of leader in our career and life is a blessing!

Technical vs. Adaptive Leadership

Aug 12, 2023 · Arun Pandey

very well said :)

Locking Files in Java

May 21, 2017 · Arun Pandey

Thanks Sun. This is compatible with Java9.

Use this code-

public void writeToFileWithLock(String data) {

fc = randomAccessFile.getChannel();

ByteBuffer buffer = null;

try (FileLock fileLock = fc.tryLock()) {

if (null != fileLock) {

buffer = ByteBuffer.wrap(data.getBytes());

buffer.put(data.toString().getBytes());

buffer.flip();

while (buffer.hasRemaining())

fc.write(buffer);

}

} catch (OverlappingFileLockException | IOException ex) {

LOG.error("Exception occured while trying to get a lock on File... " + ex.getMessage());

}finally{

fc.close();

randomAccessFile.close();

}

}

ConcurrentHashMap in Java 8

Mar 15, 2017 · Arun Pandey

Thanks Gaurav

ConcurrentHashMap in Java 8

Mar 10, 2017 · Arun Pandey

Thank you Anand


A Look at ForkJoinPool and Parallel Streams

Dec 30, 2016 · Arun Pandey

Thank you Jirka. Actually ForkJoin Pool has come up with a common Pool concept in Java 8. you can refer - http://openjdk.java.net/projects/jdk8/features

" core/libs
103 Parallel Array Sorting Add additional utility methods to java.util.Arrays that use the JSR 166 Fork/Join parallelism common pool to provide sorting of arrays in parallel.
"


An Introduction to JBehave and BDD

Dec 16, 2016 · Arun Pandey

Hi Arturo, both are matured tool, and you are right that most of the organizations are using Cucumber. JBehave is purely Java based framework while Cucumber is Ruby based.

How to Create Runtime JUnit Test Cases

Oct 16, 2016 · Arun Pandey

Hi Charles,

It could be used as below ----

@RunWith(JUnitFactoryRunner.class)
public class TextFileInputDataTest {

/** Here's where to set up test case inputs, and their expected result will be
* read from a text-file, and will be populated as an map
* (Map<TestInputData, ExpectedResultData>) and need to compare values with
* their corresponding expected result fetched from map.
* This basically reads the text input file and prepare the List<RuntimeTestCase>.
* and provides this List as an input to RuntimeTestCase
* @return
*/

@JUnitTestFactory
public static Collection<?> tests() {

Map<TestInputData, ExpectedResultData> testInputAndResultMap = getTestInputAndResultMap();
Iterator<TestInputData> testInputAndResultMapItr = testInputAndResultMap.keySet().iterator();
ArrayList<RuntimeTestCase> tests = new ArrayList<RuntimeTestCase>(testInputAndResultMap.size());

while(testInputAndResultMapItr.hasNext()){
TestInputData testInput = testInputAndResultMapItr.next();
ExpectedResultData expectedResultData = testInputAndResultMap.get(testInput);
tests.add(new RuntimeTestCase(testInput, expectedResultData));
}
return tests;
}

private static Map<TestInputData, ExpectedResultData> getTestInputAndResultMap(){
Map<TestInputData, ExpectedResultData> testInputAndResultMap = new HashMap<TestInputData,
ExpectedResultData>();

TestInputData testInputData1 = new TestInputData();
ExpectedResultData expectedResultData1 = new ExpectedResultData();
testInputData1.setName("test-1");
expectedResultData1.setName("test-1");
testInputAndResultMap.put(testInputData1, expectedResultData1);

TestInputData testInputData2 = new TestInputData();
ExpectedResultData expectedResultData2 = new ExpectedResultData();
testInputData2.setName("test-2");
expectedResultData2.setName("test-2");
testInputAndResultMap.put(testInputData2, expectedResultData2);
return testInputAndResultMap;
}
}


The same way file can be used. In above example it will create 2 test cases. Hope it will clear your doubt. Thanks :)


JMS: A Quick and Complete Guide

Sep 30, 2016 · Arun Pandey

Thank you Run


How ConcurrentHashMap Works Internally in Java

Sep 10, 2016 · Arun Pandey

Thanks Akhil

How ConcurrentHashMap Works Internally in Java

Sep 10, 2016 · Arun Pandey

Thanks Franks :)


How ConcurrentHashMap Works Internally in Java

Sep 09, 2016 · Arun Pandey

Thanks Bhavin


How ConcurrentHashMap Works Internally in Java

Sep 09, 2016 · Arun Pandey

Thanks Shaomin. To answer you - It will not fail with ConcurrentModificationException. While one thread will operate to read the data on same entry another thread would be eligible to write, so get can overlap with put.

How ConcurrentHashMap Works Internally in Java

Sep 07, 2016 · Arun Pandey

Thnaks Minborg for suggestion,

VTD XML Parser

Aug 30, 2016 · Arun Pandey

Agreed Jimmy :)


User has been successfully modified

Failed to modify user

ABOUT US

  • About DZone
  • Send feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: