ajohnstone
93 posts

ajohnstone
@ajohnstone
Operations architect at photobox
London, England Katılım Ağustos 2008
237 Takip Edilen83 Takipçiler

@simonplend Why do you need to wrap in node, console.log and eval? Seems unnecessary?
Can’t beat jq, such an amazing tool, formatting and manipulation of the output can be done directly.
jq -n ‘. | “\(.field)”’
Can pipe to tsv etc
English

@simonplend @benpbarnett been quite out of touch with things regarding web dev, looking to write an app and just wondering what’s trending now? I’ve gone down the route of angular/typescript/graphql. Anything you’d recommend looking into?
English

@simonplend I use both extensively
a) yaml can be easier to read at a glance
b) I prefer json for processing/parsing
c) other protocols/formats for more efficient storage and processing.
Jq is awesome for manipulating and managing json
English

@simonplend 1. Yaml is a superset of JSON.
2. Supports comments
3. multi line strings
4. Anchors and aliases and overrides
5. Payload sizes are larger in yaml with formatting and spacing typically
6.Readability
7. execution/performance differs with encode/decode
8. Yq is inferior to jq
English

@DinisCruz @AWSSupport @QuinnyPig @awscloud @AWSSecurityInfo @ben11kehoe @alexbdebrie @pacohope @abhaybhargav @SeanTMalone @brunogarrancho @AlzetteInfoSec @singhprateik @bjohnso5y @darkp0rt @slipdexic a) loggers
```
logging.getLogger('botocore').setLevel(logging.DEBUG)
logging.getLogger('urllib3').setLevel(logging.DEBUG)
```
b) monkey patch boto3/urllib3
This exposes sensitive data, so add a filter on the loggers.
English

@DinisCruz 1. Aws lambda has its own scheduler.
2, docker socket would not be exposed.
3. Virtual kubelet could be ran and a rootless docker ( virtual-kubelet.io )
So maybe possible.
English

@DinisCruz Statectr could be messed up. See code here, repeatable after a daemon restart?
#L38" target="_blank" rel="nofollow noopener">github.com/moby/moby/blob…
#L16" target="_blank" rel="nofollow noopener">github.com/moby/moby/blob…
English

@simonplend Curious about the format your using, mistakes, knowledge and skills and how that helps you arrive at a product?
Not seen that before, would of thought some kinds of mind map?
English

@hillelogram I once wrote a backend based on google sheets, so I didn’t have to write a backend. Just make sure you use protected fields/columns and use validation on input :)
English

@DinisCruz Your permissions will be incorrect for your iam role you have assumed. It won’t be an issue with AWS.
English

@simonplend I also use warning to add important information that can easily been seen above informational messages to add emphasis on the message.
It does not necessarily mean an error occurred.
English

@ejc3 @DinisCruz @Rancher_Labs Rancher used to have issues at scale, and looks like it’s improved now. They quote the following
> GA – support for 2000 clusters, 100,000 nodes
and quotes 5k nodes
cdn2.hubspot.net/hubfs/468859/e…
English

@DinisCruz @ajohnstone @Rancher_Labs Haven’t used, but heard good things. I don’t think it will be a problem if hardware is solid.
English

@brianleroux @DinisCruz Would probably create a sqs queue, and trigger aws lambda off the back of it. Entirely depends how your processing the files.
English

@DinisCruz @ajohnstone then this workload is suitable for AWS Lambda if you can keep the processing in-memory
English

@DinisCruz If it was bubbled up it would be raised and then handled :)
English

@DinisCruz This demonstrates bad practice.
1. Do not wrap and hide exceptions
2. Bubble up and handle the exceptions correctly in the context they are used.
3. Unfortunately, above demonstrates to engineers how to suppress exceptions.
4. I cannot count the amount of times I’ve rejected PRs
English
