Authentication Using Server Side X.509 Certificates With N1QL
1 day ago, dzone

Authentication and authorization to the query service in Couchbase works in multiple ways -  Passing credentials through a rest request - curl http://localhost:8093/query/service?pretty=true -d "statement=select * from system:keyspaces" -u Admin:pwd Passing credentials using the creds named parameter and/or query parameter - curl http://localhost:8093/query/service?pretty=true -d "statement=select * from system:keyspaces&creds=[{user:“Administrator”,”password”:”pass”}]" Using basic auth in the ...

How I Improved My Legacy C++ Project With PVS-Studio
1 day ago, dzone

Since a few months, I've been refactoring my old C++/OpenGL project. Thus far, I used compilers (MSVC and Clang), my knowledge or free tools. At some point, I also got a chance to leverage a solid static analysis tool - PVS-Studio. The tool helped me with identifying 8 critical issues not to mention good code style and performance enhancements (in total 137 warnings) Read on to see my report....

What Is SaaS Business Model?
1 day ago, dzone

Software As A Service (SaaS) is commonly known as cloud-based software. Today, Software as a Service is widely used by individuals and organizations across the world.  According to Gartner, Inc., SaaS solutions were estimated to raise $85 billion in 2019. In 2020, they are estimated to generate $105 billion - $20 billion more than the last year. ...

How to Implement Oauth2 Security in Microservices
1 day ago, dzone

Purpose I wanted a solution where we can easily captured Oauth2 and Oauth2 client for the secure communication with all of the microservices. Focusing, how to achieve oauth2 full flavor into microservices architecture. User can’t access API without token. The token will be available when user given basic and authentication details to generate token for access API. All requests will consider one entry point API-Gateway but, service-to-service can communicate. The API-Gateway will dynamic routing ...

DZone Partners Agile + DevOps Virtual This November
1 day ago, dzone

DZone always strives to be a trusted resource for developers, engineers, and architects to turn to stay on top of trends. Now, we will bring some of our top articles and contributors straight to you, streaming live during the Agile + DevOps Virtual conference.  We have partnered exclusively with TechWell who produces one of the top Agile + DevOps conferences in the industry to bring you the Best of DZone track. So why not make the most of what's left of 2020 and focus on your career and skill gr...

Value Stream Management Essentials
1 day ago, dzone

Value Stream Management (VSM) is the lean practice of monitoring, evaluating, and continually improving an organization’s software delivery process. In this Refcard, explore everything VSM has to offer, including key concepts, fundamentals, and more....

Spring Boot + Jersey: Role-Based Security With JAX-RS Annotations
1 day ago, dzone

Need a better, easier way to manage authorization within your application? Check out this tutorial on role-based security with JAX-RS annotations. Let's get started!...

MariaDB SQL Set Operators
1 day ago, dzone

Set operators are the SQL operators that deal with combining, in different ways, different result sets. Say you have two different SELECTs that you want to combine into a single result set, the set operators come into play. MariaDB has been supporting the UNION and UNION ALLset operators for a long time, and these are by far the most common set operators. But we are getting ahead of ourselves here, let me first explain the set operators that we have and how they work. If you want to giv...

GraalVM — Byte Code to Bit Code
1 day ago, dzone

Early adopters for Cloud-Native (microservices, serverless) are now moving to its next wave called v2.x., leveraging the maturity, learnings, and identified shortfalls to design next-level stuff. Let's recap few purposes of going cloud-native that we will relate here:...

Bringing Your (Encryption) Keys to Multi/Hybrid Clouds
1 day ago, dzone

Tools and Setup Before we dive into the fun part of getting keys shared amongst cloud providers, there are a variety of tools required to get this tutorial working. First, you’ll need to download and install Vault, then get it up and running. You will also need to install cURL and OpenSSL — these usually comes pre-installed with most Linux OSs, and are available via most package managers (apt, yum, brew, choco/scoop, etc.). Our examples also use head and diff which are part of the coreutils and ...

Spring Boot - Building Restful Web Services With Jersey (XML) + JPA
1 day ago, dzone

In the video below, we take a closer look at how we can build production-ready services with Jersey, JPA, and Spring. Let's get started!...

How to Build a Kubernetes Operator
1 day ago, dzone

This is the second part of our series focusing on Kubernetes Operators, and it shows how you can build a Kubernetes Operator based on the Bitnami Apache Helm chart. Note that you can refer to the steps in this tutorial to build an operator for your own applications. Prerequisites We assume you followed the first part of the series. Thus, you should have a Kubernetes cluster (v1.7 or newer) with a control plane and two workers running on your computer. Also, the Operator Lifecycle Manager should...

Overcoming Common Serverless Challenges with Mainframe CICS Programs
1 day ago, dzone

By this point most enterprises, including those running on legacy infrastructures, are familiar with the benefits of serverless computing: Greater scalability Faster development More efficient deployment Lower cost The benefits of agility and cost reduction are especially relevant in the current macroeconomic environment when customer behavior is changing, end-user needs are difficult to predict, and development teams are under pressure to do more with less. ...

Spring Boot REST API Request Body Validation With Custom Validator
1 day ago, dzone

In the video below, we take a closer look at Spring Boot REST API Request Body Validation Example using Custom Validator. Let's get started!...

C Programming Interview Questions
1 day ago, dzone

Most interview questions are based on algorithms and live coding. Companies know that learning a programming language or switching from one language to another should not be a problem for the candidate. But sometimes, for specific jobs, companies look for the candidate who specializes in a particular language. Here are some of the most frequently asked questions I have compiled that are asked during the interview for C developers. C is a procedural programming language, used for writing effectiv...

Kubernetes Cloud Autoscalar in Terraform - Part 1
1 day ago, dzone

Cluster Autoscaler - It is a component that automatically adjusts the size of a Kubernetes Cluster so that all pods have a place to run and there are no unneeded nodes. It can be created by using the YAML file, Helm Chart, or Terraform. The following example creates the Cloud Autoscalar deployment using Terraform dynamic Modules. Corresponding to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml Resource kubern...

How Custom Software Fills the Gap in Hybrid Workforces
1 day ago, dzone

The COVID-19 pandemic has forced workforces to split into two unequal halves: those who can afford to work remotely, and those who can’t. While some consider a hybrid workforce as an opportunity--and it is--there’s no denying that it’s also causing strain to both businesses and their employees. Unless a solution is put in place to help companies adjust to this new situation, the impact will continue to grow. One solution is for companies to invest in custom software that directly addresses the i...

Developing Software for Connected Cars – Common Challenges and How to Tackle Them
1 day ago, dzone

Automotive is transforming into a hyper-connected, software-driven industry that goes far beyond the driving experience. How do you build applications in such an innovative environment? What are the main challenges of providing software for connected cars and how to deal with them? Let’s dive into the process of utilizing the capabilities of the cloud to move automotive forward. People have always aimed for the clouds. From Icarus in Greek mythology, first airplanes and spaceships to dreams abou...

Maven Plugin Testing In a Modern Way Part IV
1 day ago, dzone

In the previous part of the series - Maven Plugin Testing - In a Modern way - Part III we have seen how to define command line options. In this part, we will take a deeper look at which goals will run for each test case and how we can change that. Let us start with simple example test case like the following:...

Spring Boot REST API: PathVariable Validation Example
1 day ago, dzone

In the video below, we take a closer look at how we can perform PathVariable validation in a Spring Boot REST API. Let's get started!...

Next Previous