Posts

Pythonic Ways to Use Dictionaries

Python dictionaries are a useful part of the language. In addition to having the ability to store keys and values, you can also use dictionary methods to manipulate those values, and you can use dictionaries to write more concise code. Use get() and setdefault() with Dictionaries Trying to access a dictionary key that doesn’t exist will result in a KeyError error, so programmers often will write unpythonic code to avoid the situation like this: >>> # Unpythonic Example >>> workDetails = {} >>> if 'hours' in spam: ...      hoursWorked = workDetails['hours'] ... else: ...      hoursWorked = 0 # Default to 0 if the 'hours' key doesn't exist. ... >>> hoursWorked 0 This pattern happens so often that dictionaries have a get() method that allows you specify a default value to return when a key doesn’t exist in the dictionary. The following code is equivalent to the previous example, but is py...

Docker Enterprise 3.0 integrates secure Kubernetes stack

With Docker Enterprise 3.0, now available in a beta version, Docker Inc. has outfitted the enterprise container platform with a secure Kubernetes stack. In conjunction with the Docker Enterprise 3.0 unveiling, Docker also rolled out a managed service option for Docker Enterprise. Docker Enterprise is positioned as an end-to-end platform for building, running, and sharing container-based applications. Docker Enterprise 3.0’s Docker Kubernetes Service (DKS) integrates Kubernetes container orchestration from the developer desktop to the production server.   [ InfoWorld explains: What is cloud-native? The modern way to develop software. | Get started: Azure cloud migration guide. • Tutorial: Get started with Google Cloud. | Keep up with the latest developments in cloud computing with InfoWorld’s Cloud Computing newsletter. ] DKS is compatible with Kubernetes YAML, Helm charts, and the Docker Compose tool for creating multi-container applications. It also provides an automated ...

10 Apparent Reason why MEAN Stack Development is an Ideal Choice for Web Applications

Budget Friendly in Nature One of the major reasons why MEAN stack development is a cut above other technology frameworks is owing to its economical friendliness. For the customers as well as the developers, it is a full stack development due to which there is a large control over unnecessary extra expenditure over resources. There is an increasing number of developer community who are actively involved and interested in this technology. Hence, there is a large amount of reusability and sharing of code amongst the developers that automatically controls the budget to a large extent. Full JavaScript Framework Since it is an entirely JavaScript framework, it has its own set of benefits to offer in terms of finest of user experience and data management. It supports Linux as well as Windows OS. There is a swift process of data recovery owing to the power and reliability of the framework. Occurrences of increased traffic is surely witnessed since both NodeJS and AngularJS offer a bet...

5 Benefits: Competitive Advantages of Big Data in Business

Big Data means a large chunk of raw data that is collected, stored and analyzed through various means which can be utilized by organizations to increase their efficiency and take better decisions. Big Data can be in both - structured and unstructured forms. Structured Data is more easily analyzed and organized into the database. Unstructured Data, on the other hand, is much harder to analyze and uses a variety of formats. Also, it is not easily interpreted by traditional data models and processes. The concept of Big Data is nothing new. In fact, more and more companies, both large and small, are using big data and related analysis approaches as a way to gain more information to better support their company and serve their customers, benefitting from the advantages of big data. 3 Vs of Big Data :   Big Data is the combination of these three factors; High-volume, High-Velocity and High-Variety. Volume Big Data observes and tracks what happens from various sources which i...

Things to Consider When You Build REST APIs with Amazon API Gateway

Request Rate (a.k.a. “TPS”) Request rate is the first thing you should consider when designing REST APIs. By default, API Gateway allows for up to 10,000 requests per second. You should use the built in Amazon CloudWatch metrics to review how your API is being used. The Count metric in particular can help you review the total number of API requests in a given period. It’s important to understand the actual request rate that your architecture is capable of supporting. For example, consider this architecture: REST API 1 This API accepts GET requests to retrieve a user’s cart by using a Lambda function to perform SQL queries against a relational database managed in RDS.   If you receive a large burst of traffic, both API Gateway and Lambda will scale in response to the traffic. However, relational databases typically have limited memory/cpu capacity and will quickly exhaust the total number of connections. As an API architect, you should design your APIs to protec...

Designing Your First Application in Kubernetes, Part 4: Configuration

Factoring out Configuration One of the core design principles of any containerized app must be portability. We absolutely do not want to reengineer our containers or even the controllers that manage them for every environment. One very common reason why an application may work in one place but not another is problems with the environment-specific configuration expected by that app. A well-designed application should treat configuration like an independent object, separate from the containers themselves, that’s provisioned to them at runtime. That way, when you move your app from one environment to another, you don’t need to rewrite any of your containers or controllers; you simply provide a configuration object appropriate to this new environment, leaving everything else untouched. When we design applications, we need to identify what configurations we want to make pluggable in this way. Typically, these will be environment variables or config files that change from environmen...

Microsoft acquires jClarity to help optimize Java workloads on Azure

Today Microsoft is announcing the acquisition of jClarity, the leading contributor to the AdoptOpenJDK project, to support their continued contributions to open source while driving increased performance for Java workloads on Azure. The team, formed by Java champions and data scientists with proven expertise in data driven Java Virtual Machine (JVM) optimizations, will help teams at Microsoft to leverage advancements in the Java platform.   At Microsoft, we strongly believe that we can do more for our customers by working alongside the Java community. The jClarity team, with the backing of Microsoft, will continue to collaborate with the OpenJDK community and the Java ecosystem to foster the progress of the platform. In the last few years, Microsoft’s usage of Java has grown and now includes multiple large-scale deployments, such as Azure HDInsight and Minecraft. Additionally, Microsoft customers like Adobe, Daimler and Société Générale have brought their Java production workl...