Potential Risks of Cloud Migration

Cloud computing has revolutionized business operations, and is becoming the nearly universal adopted model for IT infrastructure. In fact, the 2018 State of the Cloud survey found that 96% of organizations use cloud services in some form or another, providing today’s organizations with a host of benefits, including greatly reduced operational costs and increased inter-connectivity via a secured network.

However, moving from mainframe to cloud presents a variety of challenges, and many organizations still rely heavily on legacy mainframe systems and outdated technologies for a large portion of their operations. Below we’ll outline a few of the more common challenges related to full scale cloud adoption, while also providing other some potential solutions.  Continue reading “Potential Risks of Cloud Migration”

Postman – Using Environments and Tokens

Rick Herrmann

Postman is an incredibly  useful tool for testing API’s.  I’ve been using it for a few years now and have found some features that make it a breeze to work with when it comes to secured API’s. It’s good for handling different environments as well.

Login and Tokens

A common pattern we use with our API’s is to use Javascript Web Tokens(JWT’s) for authentication. To work with this in Postman, I typically have a /login post call which returns a token. Then for any other calls to that API, I manually copy the returned token, and set the Authorization header to “Bearer <token>”. Although this works, it’s a pain when the login token expires and I have to copy a new token to the Authorization header for every saved API call.  For an API where you have a lot of endpoints saved, updating all the Authorization headers can become tedious. Continue reading “Postman – Using Environments and Tokens”

Mongo String Indexing part 1

misc1Overview

We have a Mongo Database and in that database we have an ‘items’ collection which has five string fields and a number of ID fields.  We’ve added 250k records to this collection and started testing the time it takes to perform various queries on these fields.  Simply adding indexes on the ID fields makes those types of queries lightning fast, however, we had a number of issues dealing with various string queries.  This is a record of our findings.

Continue reading “Mongo String Indexing part 1”

MongoDB for Custom Data Fields

Rick HerrmannWe have an application that contains a mix of relational data and dynamically structured data. All of the data is currently stored in SQL Server, with the dynamic portion of the data models being stored in string columns as json data. If all we needed to do with the non-relational data was to display it on various screens, SQL Server would work great.

Continue reading “MongoDB for Custom Data Fields”

Database Updates With Code First Migrations

Rick HerrmannI have been working with EF Code First Migrations for a while but until recently had not used it for updating more than a local development database.  As I discovered, it is actually pretty easy to run your migrations against different databases.  The update-database command has an optional switch for a ConnectionStringName.  However, if you are using web.config transformations to manage connection strings for different environments, you may only have one connection string name, with the environment specific connection string being defined in each transform.  I’ll explain how I am getting around that.

Continue reading “Database Updates With Code First Migrations”