teleren/devto huggingface dataset:
22 - Static Content Hosting Pattern (Save cost and gain performance for static websites!)
Tags: architecture, hugo, staticcontent, azure
Published: 2021-04-29 15:50:20

![22 — Static Content Hosting Pattern](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kys9mz4iat4ffbdsx91f.jpg)

**This post was originally published on Fri, Jan 15, 2021 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/static-content-hosting-pattern/).**

Do you have a website that is made up mostly of Static Content (e.g. HTML, JavaScript, CSS, Images)? Interested how you can optimise for performance and cost savings as well? Then join this episode as we talk through the Cloud Design Pattern, “The Static Content Hosting Pattern”. This is another episode in the series of Architecting for the Cloud, one pattern at a time.

{% youtube LY7FEAoPucM%}
21 - The Queue Based Load Levelling and Competing Consumers Pattern
Tags: architecture, api, microservices, azure
Published: 2021-04-29 15:49:07

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Fri, Jan 1, 2021 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/queue-based-load-levelling-and-competing-consumers/).**

Do you have an application with some specific requirements around scalability, and continuity of service? What happens if your service is hit by heavy load? Could performance/reliability issues cause an impact to your solution? This is where both the queue-based load levelling and competing consumers patterns shine. Tune in and listen to Chris speak with Will Eastbury as they discuss both of these patterns. This is another episode in the series of Architecting for the Cloud, one pattern at a time.

{% youtube CI3yzIxUrGg%}
How to Improve Development Experience On Kubernetes
Tags: cloud, kubernetes, programming, devops
Published: 2021-04-29 15:48:36

The abstraction of containers has been a big step toward removing complexity and reducing friction between developers and the infrastructure. Then, the orchestration of such a container with Kubernetes makes things easy also on the DevOps side.

Anyway, we are not satisfied with this result. Even we saved a lot of time and improved quality by applying such technologies, we are still wondering if we can save more time and simplify the management part.

That’s why, nowadays, there are many **Application Development Platforms** that aims to create a development experience where the only focus is on the application, automating and abstracting all the other part.

In this article, I will test the **Shipa** solution, that works on top of Kubernetes for managing application without knowing anything about YAML files, Helm, Docker or any other tools in the market.

[Read the full article here](https://towardsdatascience.com/improve-development-experience-kubernetes-5d16da4105d7?sk=fe497d01bc1165a8cf387c10bce5e2c3)
20 - The Anti-corruption layer, Gateway Aggregation and Gateway Routing patterns
Tags: architecture, api, microservices, azure
Published: 2021-04-29 15:48:09

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Wed, Dec 30, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/requirements-in-context/).**

You’ve heard Peter and Chris talk about The Façade pattern previously. These patterns build upon the Façade concept. The façade layer could be used to translate requests between various subsystems, aggregate multiple backend requests into a single response and offload specialised functionality to a gateway proxy. Tune in and listen to Peter Piper join Chris Reddington, as they discuss The Anti-corruption layer, Gateway Aggregation and Gateway Routing patterns! This is another episode in the series of Architecting for the Cloud, one pattern at a time.

{% youtube gGDu4FdUk7I%}
19 - The Event Sourcing, Materialized View and CQRS Patterns
Tags: architecture, api, azure, data
Published: 2021-04-29 15:46:50

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Wed, Dec 23, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/event-sourcing-and-materialized-view/).**

The event sourcing pattern is a well-known pattern and has been around for some time. The idea is that you use an append-only store to record the full series of actions taken on the data. This combines well with the materialized view pattern, where a pre-populated view is generated over one (or more) data stores when the data isn’t in an ideal format for querying. These two patterns are common patterns used in an event-driven architecture. Join Chris and Steph as they talk about both of these patterns and how they may be able to help. This is another episode in the series of Architecting for the Cloud, one pattern at a time.

{% youtube 0s3yjmJ0ksA%}
Cant get one item from axios response data
Tags: getobjectfromaxiosresponsedata
Published: 2021-04-29 15:46:14

// help plz, i need to get item from response.data as an Object

const [abonnes, setAbonnes] = useState({
        courriel: "",
        id_Abonnes: "",
        nom: "",
        prenom: ""
        
    });

 useEffect (()=>{loadAbonnes();}, []);

    const loadAbonnes = async () =>{

        const result = await Axios.get(`http://localhost:4000/api/getonea/${id}`)
        console.log(result.data);
/* array list with one item from axios and MySQL Database */ setAbonnes(result.data); //one object data from db: Array [ {…} ]
    
        console.log(abonnes);
    /* Empty object  (Undefined) on my console  */
        
    }
How To Create a Universal Backend With Symfony
Tags: symfony, api, programming, php
Published: 2021-04-29 15:45:57

In 2021, there isn’t any more space for reinventing the wheel. 

Development is an art that relies more and more on a pick-and-assemble strategy than developing things from scratch. Following this trend, writing code for just reading and writing data is a mess of a time. That’s probably the reason why **headless CMS solutions** have been spreading in the last few years and SaaS adoption is the most common way to move to the cloud.
Anyway, we often have to fight against complicated business logic or complex integration, and we would need the flexibility of writing custom code.

What we will see in this article is how to create a headless CMS using **Symfony** and **MongoDB** starting from scratch. The output of this project is a working application that can be installed as a composer package, and you can use it as a base for implementing your applications (yes, applying custom business logic with ease)!

This is not only an interesting way to implement data services but also a great showcase of the Symfony framework. As I mentioned in my previous article, I completely rewrote an entire headless low-code platform CMS (previously written in two years in .NET) in just two days using Symfony. Yes, two years vs. two days!
In this article, I will show my work and explain how it is possible thanks to the native feature of that framework.

[You can find a reference to the full source code at the end of this article.](https://betterprogramming.pub/graphql-api-symphony-mongodb-c866a79fdf48?sk=3b11f94b8dac7dd5c41c0ed3df2b34be)
18 - Tales from the Real World - Defying Gravity.. The magic behind Flight
Tags: architecture, gamedev, gaming, azure
Published: 2021-04-29 15:45:48

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Fri, Dec 18, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/requirements-in-context/).**

Have you tried Flight Simulator 2020 and been impressed by how well it maps to the real world? Joined other users in the simulator on a journey and encountered other ‘live’ aircrafts, or changing weather conditions? This is powered by the Cloud! Join Chris and Cam as they embark on a journey of discovery, and a quick lap around the skies…

{% youtube RxiE2NIRPKU%}
17 - The Throttling, Retry and Circuit Breaker Patterns
Tags: architecture, api, azure, resilience
Published: 2021-04-29 15:44:43

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Fri, Dec 4, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/throttling-and-retry-pattern/).**

How are you thinking about handling load on your application, scaling out perhaps? But what about if you’re building a multi-tenant service and worried about safeguarding resources on a per tenant basis? What happens if there’s a temporary blip, and there are issues that impact the stability of the application? Then tune in to this episode where Chris is joined by John Downs, talking about the Throttling, Retry and Circuit Breaker Patterns. This is another episode in the series of Architecting for the Cloud, one pattern at a time.

{% youtube 0HoTGgb5oFg%}
16 - The Backends for Frontends and Strangler Pattern with Peter Piper
Tags: architecture, api, azure, microservices
Published: 2021-04-29 15:43:21

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Sun, Nov 22, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/backends-for-frontends-and-strangler/).**

Developing applications for new platforms, and struggling to manage your API estate? Finding you have to refactor, or in a scenario where your code isn’t clean? Want to decouple your backend APIs from your clients, and figure out how you can move from a legacy set of APIs to modern APIs? Then tune in and listen to Peter Piper join Chris Reddington, as they discuss the Backend for Frontends and Strangler Pattern, with an honourable mention to the Façade pattern as well! This is another episode in the series of Architecting for the Cloud, one pattern at a time.

{% youtube KdNzm42u6Y4%}
15 - The Sharding and Index Table Patterns
Tags: architecture, api, clouddesignpatterns
Published: 2021-04-29 15:42:18

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Fri, Nov 13, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/sharding-and-index-table/).**

Starting to think about the data layer of your application, and concerned about scalability of your solution? Or have some form of application that needs to have segregation of data, perhaps customers with requirements to have their data in a particular geography? Then the first part of the session may be for you, focused on the Sharding pattern! But what about if you’re using a data store which doesn’t support secondary indexes? Won’t you be limited on the efficiency and types of queries that you can run across your data? Then this is where you may be interested in the Index Table Pattern. Listen in to this session where Chris Reddington is joined by Steph Martin, talking about both of these patterns. This is another episode in the series of Architecting for the Cloud, one pattern at a time.

{% youtube ukzpTNRxyr4%}
14 - The Deployment Stamps Pattern
Tags: architecture, api, deployment, azure
Published: 2021-04-29 15:41:16

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Fri, Nov 6, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/deployment-stamps/).**

Want to focus on scaling an application, or care about resilience? Have a multi-tenant app, but some of your customers have specific requirements for their scenario? Want to have an application deployed globally, but users housed in a particular area for Data Sovereignty? Then listen in to this session where Chris Reddington is joined by John Downs, talking about The Deployment Stamps Pattern. This is another episode in the series of Architecting for the Cloud, one pattern at a time.

{% youtube kaR_0mQi1O0%}
13 - Tales from the Real World - Defying DDOS
Tags: security, azure, cloudsecurity, azuresecurity
Published: 2021-04-29 15:40:02

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Fri, Oct 30, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/defying-ddos/).**

When building solutions in the cloud, security is often a pillar that we hear come up in the requirements discussion. But how does that translate into the real world? Particularly defending against DDOS attacks? Check out this episode, where Cam Adams joins Chris and talks about some of the recent work that he has been doing, helping customers defend against this.

{% youtube zSObCp1GbSQ%}
12 - Modern Identity Patterns
Tags: identity, azure, authentication, authorization
Published: 2021-04-29 15:38:36

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Fri, Oct 16, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/modern-identity-patterns/).**

This is the first episode! We’ll be talking about all things requirements. Why is that? Well, that’s the place any kind of project should start — What are you aiming for, what are you trying to achieve and what is the context?

{% youtube 4OSSVk0IzCk%}
11 - The Geode Pattern - What is it and how can it be useful for my app?
Tags: architecture, api, resilience, azure
Published: 2021-04-29 15:37:19

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Mon, Dec 21, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/geode-pattern/).**

You may have heard of patterns like the retry pattern, circuit breaker, CQRS or bulkhead. But have you heard about the Geode pattern? Join Chris and Will Eastbury in this session as they talk through how this pattern can help improve latency and increase availability for your application.
This episode was originally recorded on 9th October 2020, but had some technical issues, and was re-recorded on 21st December 2020.

11 - The Geode Pattern - What is it and how can it be useful for my app?

{% youtube TE4pif__A8c%}
10 - Exploring GitHub Actions to deploy Static Content and Azure Functions
Tags: devops, github, serverless, azure
Published: 2021-04-29 15:34:38

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Fri, Oct 2, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/azure-github-actions/).**

This is the first episode! We’ll be talking about all things requirements. Why is that? Well, that’s the place any kind of project should start — What are you aiming for, what are you trying to achieve and what is the context?

{% youtube T9EtWuDfH1s %}
9 - Building smart Integration Solutions with Microsoft Azure
Tags: serverless, monitoring, integration, azure
Published: 2021-04-29 15:32:12

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Sun, Aug 2, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/building-smart-integration-solutions/).**

When we think about cloud, we typically think about distributed systems and somehow bringing those different components or systems together, so integrating them. But what are the common practices, or common challenges? You’ve probably heard of serverless, how does that fit into things? Well, I’m pleased to be joined by Ezhilarasi Chezhiyan, Product Consultant of Serverless360 at Kovai.co. So, without further ado — let’s go ahead and jump straight in.

{% youtube AN5XqrpTZDQ %}
8 - Azure Security
Tags: security, architecture, devops, azure
Published: 2021-04-29 15:31:06

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Sun, Jun 7, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/azure-security/).**

In this episode, we get back to a requirements based topic, and an area that will significantly impact the design of our resulting solution architecture. That topic is security! It’s one of the hot topics that organisations want to discuss when moving to the cloud. So I’m pleased to be joined in this episode by another colleague, Andrew Nathan, who has a wealth of knowledge in the cyber security space.

{% youtube 0UbMBxE-gDU%}
Do you even write?
Tags: writerboards, watercooler, writing
Published: 2021-04-29 15:30:57

# "This year, I will write at least one article a week." - you

Have you formulated such intentions before? I certainly have and I must admit that I haven't been consistent with any of such intentions. From the fitness world, we know that tracking your progress not only motivates and generates data, but generates a feeling of commitment that helps you to succeed. [Writerboards](https://writerboards.com) aims to tackle this issue for writers. However, not everybody is a novelist. Most of us write blogs, posts or articles. 
## So how do you track your dev.to contributions?

First, you need accounts for

- [writerboards.com](https://writerboards.com)
- [blua.blue](https://blua.blue) (or a self-hosted installation thereof)
- [dev.to](https://dev.to) 

### Setup

Let's start with dev.to: go to your [account settings](https://dev.to/settings/account) and generate an API key. Retain it.

Next, visit [blua.blue's dev.to page](https://blua.blue/dev-to/) to convert your api-key to a blua.blue token.

Once done, visit [api settings](https://blua.blue/profile/#api) and make sure the following webhook info is present:

|Reference |Endpoint |Token |
--- | --- | ---
| Dev.to | https://blua.blue/api.v1/dev-to | {your-token} |
On Writerboards, go to [integrations](https://writerboards.com/integrations) and select "blua.blue". This will generate the necessary webhook-data for blua.blue. Visit [api settings](https://blua.blue/profile/#api) again to input the information:

|Reference |Endpoint |Token |
 --- | --- | --- 
| Writerboards | https://writerboards.com/backend/api.v1/blua-blue | {your-token} |

## That's it

You can now start writing on blua.blue and both Writerboards and Dev.to should show up preselected as webhooks. 

## Tags/Keywords

You will probably notice that writerboards will only add tags that are known to the writerboards-community while dev.to limits tags in general, but allows free tag generations. Writerboards uses tags to count documents towards a group. If you are in a writerboards group and would like to be on the leaderboard, use one of the tags the group uses.
Can I ask questions regarding my code here? (New here btw)
Published: 2021-04-29 15:29:24

---
title: Can I ask questions regarding my code here? (New here btw)
published: true
description: I'm learning React, Redux and with the tutorial I'm using, I added some few things but those are not working.
tags: 
//cover_image: https://direct_url_to_image.jpg
---
7 - Creating Cloud with Chris
Tags: podcast, community, content, contentcreator
Published: 2021-04-29 15:28:59

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Sun, May 24, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/creating-cloud-with-chris/).**

We’re going to go in a little bit of a different direction for this episode, and focus on the podcast itself and my podcast journey so far! Not only is this episode topic slightly different, we’re running a different format as well! In this episode, I’m joined by my colleague, Fletcher Kelly — who is exploring the idea of setting up his own podcast! Instead of me being the interviewer, I’m the one who ends up in the hot seat and talk about my experience so far of setting up Cloud with Chris! Hopefully this will give you a little bit of an idea of my journey so far, and why I wanted to set the podcast up as well! So, let’s go ahead and start the episode…

{% youtube 4Hi-5cGJmfw%}
6 - Hybrid Cloud
Tags: architecture, hybrid, azurestack, azure
Published: 2021-04-29 15:27:26

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Sun, May 10, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/hybrid-cloud/).**

Joining me in this episode is Thomas Maurer, a Senior Cloud Advocate at Microsoft who engages with the community and customers around the world! Most of the focus so far in Cloud with Chris has been on Public Cloud, so Thomas and I adjust course slightly, and talk about Hybrid Cloud, and the new and upcoming features of the Microsoft Azure platform. Get ready to be introduced to a wide variety of Azure Technologies, and how they may be able to strengthen your on-premises, public cloud or multi-cloud deployments. Let’s listen in…

{% youtube RvfQznHkqps%}
5 - The API Economy
Tags: architecture, api, microservices, azure
Published: 2021-04-29 15:26:10

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Sat, Apr 25, 2020 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/api-economy/).**

Let’s introduce the next episode -We have another guest! We’re starting to bring a few of those previous topics together in this episode. We touch upon requirements, DevOps, and building applications — or rather APIs — in the cloud. In this episode, I talk with a colleague and friend, Peter Piper, on factors that relate and impact API design. So, without further ado… here we go!

{% youtube zE0g2VycIDU %}
JavaScript Interview Question #36: Can you add a new property to the JS array?
Tags: webdev, javascript, beginners, codewnewbie
Published: 2021-04-29 15:25:22

![js-test-36](https://learn.coderslang.com/js-test-36.png)

Does the new array property affect its length? Is such an assignment valid at all?

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

JavaScript arrays are used to store values in an orderly fashion. Normally, to add a new element, you should use the built-in `push()` function.

But, in JS, all arrays are objects in the first place. Which means you can add new fields to them.

The assignment `arr.greeting = 'Hello, world!'`  won’t raise any errors and is perfectly fine from the language standpoint.

Once it’s executed, the array will have an extra property `greeting`.

The length of an array won’t change as `Hello, world!` isn’t considered one of the elements of the array.

---

**ANSWER**: the length of an array won’t change and will remain equal to `4`. The second `console.log` prints out `Hello, world!` to the screen.

[Learn Full-Stack JavaScript](https://js.coderslang.com/sign-in)