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

The Latest Monitoring and Observability Topics

article thumbnail
Creating AWS Lambda Functions From Octopus Deployments
Merging continuous deployment and serverless tech is possible. Assuming you've got a pivot machine, you can combine the power of your Octopus deploys and AWS Lambda.
January 12, 2017
by João Rosa
· 9,990 Views · 4 Likes
article thumbnail
Triggering Lambda Functions With an AWS IoT Button
It turns out that it's easy to merge serverless architecture with your IoT projects by having AWS IoT Button trigger an AWS Lambda function.
December 31, 2016
by Arun Gupta
· 14,218 Views · 4 Likes
article thumbnail
Integrate Spring Boot and EC2 Using Cloudformation
Getting your Spring application up and running on top of an EC2 instance is pretty simple.
December 28, 2016
by Emmanouil Gkatziouras DZone Core CORE
· 10,622 Views · 4 Likes
article thumbnail
Server Log Analysis: It's More Important Than Google Analytics
This article discusses the significance of analyzing the server logs. The author also demonstrates a server log dashboard created using the open source ELK Stack of Elasticsearch, Logstash, and Kibana.
December 23, 2016
by Samuel Scott
· 16,221 Views · 8 Likes
article thumbnail
Making Spring Boot Applications Run Serverless With AWS
Forget the cloud, it's time to go serverless. Using AWS Lambda and API Gateway can reduce costs and overhead, and it's easy to get your Spring Boot app running on it.
December 18, 2016
by $$anonymous$$
· 40,142 Views · 14 Likes
article thumbnail
An Overview of Meta-Monitoring
Meta-monitoring is basically self-service for monitoring. There are several different requirements and methods that should be kept in mind when it comes to meta-monitoring.
December 15, 2016
by Thomas Kurian Theakanath
· 6,039 Views · 2 Likes
article thumbnail
ConcurrentHashMap isn't always enough
When Java developers come to a task of writing a a new class which should have a Map datastructure field, accessed simultaneously by several threads, they usually try to solve the synchronization issues invloved in such a scenario by simply making the map an instance of ConcurrentHashMap . public class Foo { private Map theMap = new ConcurrentHashMap<>(); // the rest of the class goes here... } In many cases it works fine just because the contract of ConcurrentHashMap takes care of the potential synchronization issues related to reading/writing to the map. But there are cases where it's not enough, and a developer gets race conditions which are hard to predict, and even harder to find/debug and fix. Let's have a look, at the next example: public class Foo { private Map theMap = new ConcurrentHashMap<>(); public Object getOrCreate(String key) { Object value = theMap.get(key); if (value == null) { value = new Object(); theMap.put(key, value); } return value; } } Here we have a "simple" getter ( getOrCreate(String key) ), which gets a key and returns the value assosiated with the given key in theMap . If there is no mapping for the key, the method creates a new value, inserts it into theMap and returns it. So far so good. But what happens when 2 (or more) threads call the getter with the same key when there is no mapping for the key in theMap? In such a case we might receive a race condition: Suppose thread t1 enters the function and comes to line 7. Its value is null . At this point thread t2 enters the function and also comes to line 7. Its value is also obviously null . Therefore from this point the two threads will enter the if statement and execute lines 8 and 9, thus creating two different new Objects. Upon returning from the getter each thread will get a different Object instance, violating programmer's wrong assumption that by using ConcurrentHashMap "everything is synchronized" and therefore two different threads should get the same value for the same key. To solve this issue we can synchronize the entire method, thus making it atomic: public class Foo { private Map theMap = new ConcurrentHashMap<>(); public synchronized Object getOrCreate(String key) { Object value = theMap.get(key); if (value == null) { value = new Object(); theMap.put(key, value); } return value; } } But this is a bit ugly, and uses Foo instace's monitor, which may affect performance if there are other methods in this class which are synchronized. Also a common rule of thumb is to try to eliminate using synchronized methods as much as possible. A much better approach should be using Java 8 Map's computeIfAbsent(K key, Function mappingFunction), which, in ConcurrentHashMap's implementation runs atomically: public class Foo { private Map theMap = new ConcurrentHashMap<>(); public Object getOrCreate(String key) { return theMap.computeIfAbsent(key, k -> new Object()); } } The atomicity of computeIfAbsent(..) assures that only one new Object will be created and put into theMap, and it'll be the exact same instance of Object that will be returned to all threads calling the getOrCreate function. Here, not only the code is correct, it's also cleaner and much shorter. The point of this example was to introduce a common pitfall of blindly relying on ConcurrentHashMap as a majical synchronzed datastructure which is threadsafe and therefore should solve all our concurrency issues regarding multiple threads working on a shared Map. ConcurrentHashMap is, indeed, threadsafe. But it only means that all read/write operations on such map are internally synchronized. And sometimes it's just not enough for our concurrent environment needs, and we have to use some special treatment which will guarantee atomic execution. A good practice will be to use one of the atomic methods implemented by ConcurrentHashMap, i.e: computeIfAbsent(..), putIfAbsent(..), etc.
December 8, 2016
by Dima Leah
· 48,889 Views · 12 Likes
article thumbnail
Camel and Kura: Providing Telemetry Data as OPC UA
If you're using an industrial M2M protocol, consider the combined power of Camel and Kura to get your telemetry data squared away as OPC UA.
November 29, 2016
by Jens Reimann
· 6,106 Views · 3 Likes
article thumbnail
Logging Docker Containers With AWS Cloudwatch
This post describes how to set up the integration between Docker and AWS and then establish a pipeline of logs from CloudWatch into the ELK Stack.
November 28, 2016
by Daniel Berman
· 10,103 Views · 3 Likes
article thumbnail
Developing a Facebook Chatbot With AWS Lambda and MongoDB Atlas
Learn how to program your own chatbot with the helping hands of AWS Lambda and MongoDB's DBaaS, Atlas.
November 21, 2016
by Jason Ma
· 7,027 Views · 7 Likes
article thumbnail
How We Implemented Object Storage to Power an Image Management Service
Rethumb uses DreamObjects to handle vast amounts of image data reliably and with low latency. This article shows the technical aspects behind how it was developed.
November 3, 2016
by Pedro Verruma
· 10,874 Views · 2 Likes
article thumbnail
DevOps: The Three Stage Conversation of People, Process, Products
This post elaborates on the three most important stages of conversation in DevOps, which are people, process, and products.
November 2, 2016
by Mohamed Radwan
· 7,464 Views · 2 Likes
article thumbnail
Monitoring OS Metrics for Amazon RDS with Grafana
This article describes how to visualize and monitor OS metrics for Amazon RDS instances using Grafana.
October 31, 2016
by Roman Vynar
· 9,552 Views
article thumbnail
How to Detect if a User Is Idle
In this article, look at how to detect if a user is active on a Windows machine in order to help deliver notifications more effectively. Read on to find out more.
October 28, 2016
by Romiko Derbynew
· 10,751 Views · 2 Likes
article thumbnail
Amazon ECS Log Analysis (Part 1)
Learn how to use Logz.io's ELK Stack to tackle the challenge of logging your ECS. See how you can mold and shape that data into dashboards and more.
October 19, 2016
by Daniel Berman
· 10,023 Views · 2 Likes
article thumbnail
Java on AWS Using Lambda, API Gateway, and CloudFormation
A practical example demonstrating integration between Java Lambda functions and API Gateway
October 18, 2016
by Emmanouil Gkatziouras DZone Core CORE
· 29,247 Views · 5 Likes
article thumbnail
Single Wire Output With the ARM Cortex-M and Eclipse
Follow along to learn more about Single Wire Output on the ARM Cortex-M. See how you can set up trace output messaging (and more) all from a single pin.
October 18, 2016
by Erich Styger
· 10,417 Views · 1 Like
article thumbnail
Automating AWS CodeCommit With CloudFormation
Recently, AWS announced that you can now automate the provisioning of a hosted Git repository with AWS CodeCommit using CloudFormation.
October 12, 2016
by Paul Duvall
· 9,538 Views · 2 Likes
article thumbnail
IOPS: Benchmarking Disk I/O – AWS vs DigitalOcean
In this article, we will see how to do this and we will compare the performance between two different providers.
September 26, 2016
by Christopher Sam K
· 37,516 Views · 6 Likes
article thumbnail
AWS and Azure: SLAs and Service Credits
See how both AWS and Microsoft Azure handle breaches to their SLAs with this head-to-head comparison. Learn how each rewards users if their service goes down.
September 26, 2016
by Christopher Sam K
· 22,363 Views · 2 Likes
  • Previous
  • ...
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • ...
  • Next
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

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 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook
×