Monday, November 28, 2022

Why Your MySQL Needs Redis

Here is the link.

  • caching
  • session store
  • Rate limiting
  • Fast data access
Redis
  1. Performance
  2. Simplicity
  3. Extensibility
Redis is uniquely suited to modern apps
A full range of capabilities that simplify and accelerate next generation applications
  1. High-speed transactions
  2. Caching
  3. Analytics
  4. Messaging
  5. Machine learning
  6. Search
  7. Fast data ingest
  8. Time series
  9. Job & queue
  10. Geo-spatial indexing
  11. Graph
20:45/ 58:20

When to use
  • Session based apps with frequent reads and writes
  • Data is isolated between sessions
Examples:
e-Commerce, gaming, social application, etc.

Designing a Session Store in Redis

  1. Identify the tables that store session data
  2. Determine the Redis equivalent data structures
  3. List the queries, develop Redis equivalents
  4. Decide the procedure to load the session data and re-synchronize the data back from Redis to MySQL
  5. Modify the data access layer or the app
3. Redis for Metering

Use Case: Rate-limiting
Limit the peak load on your legacy database by limiting the number of queries per second to the highest threshold

How Redis helps you?
  • Built-in counters
  • Time-to-live
  • Single-threaded architecture assures serializability
4. Redis for Fast Data Ingest
Use Cases:
  • Real-time analytics
  • IoT
  • Log collection, time-series
How Redis helps you?
  • Pub/Sub
  • List
  • Sorted Set


Advantages of Redis Enterprise

High availability
  • Cover your business for peak hour traffic
  • Prevent cache stampede
  • Deliver consistent high performance
  • Zero downtime scaling
Security
  •  Meet your organization's security and compliance requirements
Performance
  • Maximize resource utilization: Run on all CPU cores
Active-Active
  • Maintain consistent session state across all data centers
  • CRDT based active-active delivers strong eventual consistency with local latency
Redis on Flash

  •     No need to evict or delete session data; allow the data to overflow to Flash memory

Caching Mysql Query Responses in Redis using PHP

Here is the link. 

#Redis #RedisPHP #RedisMysql #RedisOnWondows This tutorial is all about receiving data from Mysql database and storing the response in Redis cache for subsequent uses using PHP and Predis library. The link to part one (which is about installing redis on windows and integrating redis and php) is https://youtu.be/ioCaSHNhIJA

First installation - predis

 C:\xampp>composer require predis/predis

Info from https://repo.packagist.org: #StandWithUkraine

Using version ^2.0 for predis/predis

./composer.json has been created

Running composer update predis/predis

Loading composer repositories with package information

Updating dependencies

Lock file operations: 1 install, 0 updates, 0 removals

  - Locking predis/predis (v2.0.3)

Writing lock file

Installing dependencies from lock file (including require-dev)

Package operations: 1 install, 0 updates, 0 removals

  - Downloading predis/predis (v2.0.3)

  - Installing predis/predis (v2.0.3): Extracting archive

1 package suggestions were added by new dependencies, use `composer suggest` to see details.

Generating autoload files

1 package you are using is looking for funding.

Use the `composer fund` command to find out more!

No security vulnerability advisories found

How to Install PHP Composer on Windows?

Here is the article. 

Composer is essentially a package manager for PHP. A package manager is, it allows anyone to import codebases into the project & keep them up to date. It just helps you to manage those dependencies. 

In this article, we will look into the process of installing a composer on a windows system.

Installation PHP composer on Windows:

Follow the below steps to install PHP composer on a windows system: 

Step 1: Navigate to the official composer website.

Step 2: Then click on the Download button.

Step 3: Then click on the Composer-Setup.exe & download the file.

Step 4: Then click on “Install for all users”.

Step 5: Do not make any changes & click Next

Step 6: First, you have to install PHP in your computer. You can see the installation location here. Click Next.

Step 7: Do not make any changes & click Next.

Step 8: Do not make any changes & click Install.

Step 9: Wait for the installation.

Step 10: Do not make any changes, just leave it & click Next.

Step 11: Click Finish, Composer is installed successfully.

Step 12: Open command prompt & execute the below command :

Hence you can see all details & your installation is successful.

Installing Redis on Windows & integrating it with PHP

Here is the link. 

In this tutorial I show you how to install Redis on windows (which is only developed for Linux based systems officially) and then how can it be accessed from PHP program. #Redis #RedisOnWindos #RedisWithPHP #PHP #RedisInstallation

Packagist The PHP package repository

https://packagist.org/?query=predis

predis/predis

Composer require predis/predis

A flexible and feature-complete Redis client for PHP.



#redis #wordpress How to Install and Configure Redis for WordPress

Here is the link. 

Learn how to install Redis and configure WordPress to use the object cache with a plugin. Find more at https://tonyteaches.tech Check out my vlog channel @Tony Florida #wordpress #redis


Redis University: Head-In-The-Corner Installing Redis on Windows 10

 Here is the link. 

Guy Royse shows you how to install the latest version of Redis on Windows 10 using the Windows Subsystem for Linux (WSL). For your copying and pasting convenience, here are the installation commands Guy uses in the video: $ sudo apt-add-repository ppa:redislabs/redis $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install redis-server Once installed, you can start, stop, and restart the server: $ sudo service redis-server start $ sudo service redis-server stop $ sudo service redis-server restart NOTE: If you have trouble with the command to start the server, you might need to turn daemonization on in your redis.conf. To do that, open up /etc/redis/redis.conf and replace where it says "daemonize no" with "daemonize yes". ▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬ 0:00 - Title sequence 0:16 - Introduction 1:07 - Enable Windows Subsystem for Linux 2:43 - Install Ubuntu 5:00 - Add Redis Labs repository to Linux package manager 6:14 - Update and upgrade Linux package manager 7:40 - Install Redis 8:22 - Run Redis 9:22 - Run Redis in the background 11:00 - Access Redis from Windows using RedisInsight 12:33 - Recap 13:12 - Thanks! ▬ Links ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Need a Redis cluster now? Sign up for a free Redis Cloud Essentials account → https://bit.ly/2wasiCa Join our Discord server → https://discord.gg/redis RedisInsight → https://redislabs.com/redis-enterpris... Redis University → https://university.redislabs.com/ Redis Labs → https://redislabs.com/

Google keyword search: google internal meme site MemeGen Do not fire us

 


"Don't focus too much on promotion" - A Billionaire Google Exec

https://goomics.net/228/


Counterpoint: At a top company like Google, full of some of the most talented people in the world, there simply won't be enough promotions to go around.

And yet, an "average" performer who is happy to build, scale, maintain, and not re-launch a new chat product every 5 years should be rewarded and encouraged to stay and not leave to a competitor.

How do you do it? You have to create intrinsic motivation. Twist: You can't give someone intrinsic motivation. They have to choose it themselves. But you have to give them the space and the options to find it.

"Don't focus too much on promotion" is still bad advice - like "Don't be angry" to someone who is angry. But the sentiment is correct. If you're focusing too much on promotion it means you don't have intrinsic motivation and are focusing on the extrinsic.

If you are well paid, well respected, well supplemented with additional benefits, and well challenged with hard problems (and at Google all of these should all have been YES by all accounts), then it's true - you SHOULDN'T focus too much on promotion.

Chris Hohn | Google investor

 Sir Christopher Anthony Hohn[1] KCMG (born October 1966) is a British billionaire hedge fund manager and philanthropist.

In 2003, Hohn established The Children's Investment Fund Management (TCI), a prominent value-based hedge fund. Profits generated by the fund were proportionately allocated to The Children's Investment Fund Foundation, a registered charity in England and Wales that focuses on improving the lives of children living in poverty in developing countries.[2] He is known as an activist investor.

As of 2014, he had given over $4.5 billion to The Children's Investment Fund Foundation.[3] Hohn is worth $5 billion according to the Forbes billionaires list in 2020, an increase of $1.9 billion from 2019.[4] In 2019 Forbes put Hohn in the list of the world's most generous philanthropists outside of the US.[5] In recent years, Hohn has become an outspoken advocate of urgent action on the climate crisis, and a prolific contributor to the cause

Google staff | Layoff update

 

Are Google staff next on the chopping block? Internal memes show staff fear widespread job cuts after Meta, Twitter, Snap and HP announced huge layoffs: 'Don't fire us please'

  • Google has dodged mass layoffs in recent months, but it hasn't stopped employees from questioning if they're next 
  • Several have taken to the internal meme site MemeGen to post their worries, including one that read: 'Don't fire us, please' 
  • Recently, UK billionaire and investor, Christopher Hohn - who has a $6billion stake in the company - encouraged an 'aggressive' headcount reduction 
  • Alphabet executives have also called for a need to sharpen 'focus' in recent months by lowering project costs and increasing efficiency by 20 percent
  • In addition, performance reviews have changed, travel budgets have decreased, and less swag items have been offered
  • Google also experienced an outage, which left employees unable to log in to work accounts, with many worrying they had been fired 

Google | May 2022

Google is raising pay, revamping employee reviews, documents show

Jennifer Elias

 MAY 6 2022

  1. Google introduced changes in efforts to streamline its performance reviews and promotions.
  2. Executives said the changes will result in higher salaries for employees, according to internal documents reviewed by CNBC.
  3. The company’s latest annual survey showed employees were increasingly dissatisfied with their pay compared what they could make elsewhere.

Google is overhauling its performance evaluation process, implementing changes that will result in increased salaries, as the company tries to ease tension between employees and leadership on the issue of compensation.

Starting this week, Google is using a new process for performance reviews called GRAD, which stands for Google Reviews and Development. It’s part of an effort to streamline the evaluation process, limiting reviews to once a year, instead of twice, and putting more responsibility in the hands of managers rather than relying heavily on peer reviews, according to internal documents reviewed by CNBC.

“Under this new process, we expect the majority of Googlers will be modeled for higher pay than they would under the old Perf system and the overall amount paid will increase too,” one of the documents said.

Google Search boss Prabhakar Raghavan reiterated that point at a company town hall meeting on Friday, according to two people with knowledge of the matter who asked not to be named because the information is confidential.

A Google spokesperson said in an email that the company has “nothing else to share.”

Employee pay has been a sensitive subject at Google. In the annual “Googlegeist” survey, which CEO Sundar Pichai considers a key indicator of employee satisfaction, staffers gave Google particularly poor marks on how compensation compares to pay for similar jobs at other companies. Employees also downgraded their ratings on the process of performance reviews and opportunities for career growth.

Results of the survey were circulated in March and underscored the challenges Google faces from the “Great Resignation,” with workers leaving their jobs at a record pace and tech companies clamoring for talent

Google employees have been voicing their concerns to management directly, not just in the annual survey. At an all-hands meeting in December, Frank Wagner, Google’s vice president of compensation, responded to questions about whether the company would provide a pay increase to address soaring inflation, especially as Google’s revenue had boomed during the pandemic with hits stock price hitting a record in November.

Wagner said Google would not implement a blanket raise to match inflation even as executives had received pay bumps.

Google is now making fundamental changes to how workers are paid and promoted. As a part of the new GRAD system, promotions will be primarily determined by management as opposed to a consortium of managers and peers. Employees, however, can still request promotions twice a year, documents show.

How to get promoted

The company is also ditching its long-held practice of lengthy promotion packets, which were long forms employees needed to fill out that included reviews from bosses and co-workers. Managers will make promotion decisions as a group instead of employees having to solicit them separately.

Google said in March it would be trying to make changes to its long-held “perf” process, which has been replicated at other companies in the industry. The Information previously reported some of the details of the performance review changes.

As part of the new system, Google employees will get a new tool to set expectations for goals, or objectives and key results (OKRs) as they’re known, one internal note said. Employees will also get “regular check-ins” with their managers each quarter to discuss career development among other things, the documents state, addressing a central complaint among workers.

For employee ratings, Google is introducing a new scale with five different levels.

Most staffers will be in the middle, which “reflects the significant impact they’re making.” The two ratings below the middle are “Moderate Impact” and “Not enough Impact” and the two above are “Outstanding Impact” and “Transformative Impact” for those who “perform above or below that high standard.”

There’s also a new promotion system. In it, an employee’s manager will complete a form assessing whether the person has shown the skills required for elevation.

“Googlers aren’t expected to already perform next-level work to demonstrate that they’re capable of next-level success,” one document said. There will, however need to be a business need for the promotion.

“Googlers will then be considered for promotions if they demonstrate signals for success at that level of work,” the company said.



CNBC | Google layoffs

Google has avoided mass layoffs so far, but employees worry their time may be coming

 Jennifer Elias

Keypoints:

  1. Google employees say there’s growing anxiety internally that layoffs may be coming.
  2. A recent change in performance reviews along with increased chatter about cuts to travel budgets and swag is contributing to the concern.
  3. Google is coming off its weakest quarter for revenue growth since 2013, other than one period during the pandemic.

As industry-wide layoffs hit bigger tech names, some Google workers worry they’re next.

While Google has so far avoided the widespread job cuts that have hit tech companies, particularly those supported by a slumping ad market, internal anxiety is on the rise, according to documents viewed by CNBC and employees who spoke on the condition of anonymity.

Alphabet executives have stressed the need to sharpen “focus,” bring down costs of projects and make the company 20% more efficient. There’s also been a recent change in performance reviews, and some employees point to declining travel budgets and less swag as signs that something bigger may be on the horizon.

In July, Alphabet CEO Sundar Pichai launched the “Simplicity Sprint” in an effort to bolster efficiency during an uncertain economic environment. Just a few miles up the road, Meta told employees this month that it’s laying off 13% of its staff, or more than 11,000 employees, as the company reckons with declining ad revenue. Snap announced a 20% cut in August, and Twitter just slashed about half its workforce under the leadership of new owner Elon Musk. Elsewhere in Silicon Valley, HP said on Tuesday it plans to lay off 4,000 to 6,000 employees over the next three years.

Google’s business hasn’t been hit as hard as many of its peers, but the combination of a potential recession, soaring inflation and rising interest rates is having a clear impact. Last month, the company said YouTube’s ad revenue shrank from a year earlier as Google generated its weakest period of growth since 2013, other than one quarter during the pandemic. Google said at the time that it would significantly reduce headcount growth in the fourth quarter.

The crypto market, which put a dent in Google’s latest results, has fallen even further with the collapse of crypto exchange FTX, leading to increased concerns about industry contagion.

‘Don’t fire us please’

Cuts at Google have already taken place around the edges.

The company canceled the next generation of its Pixelbook laptop, slashed funding to its Area 120 in-house incubator and said it would be shuttering its digital gaming service Stadia.

Concerns about terminations are mounting, at least in certain corners. And some employees are turning to memes to express their anxieties through humor.

One internal meme shared with CNBC shows a before-and-after animated character. On the before side, the figure has his hands raised with the caption “inflation pay rise!” On the after side, a frightened character sits alongside the caption, “don’t fire us please.”

Another meme has names of tech companies — “Meta, Twitter, Amazon, Microsoft” — that recently conducted layoffs next to an image of a worried anime character. There were also memes created in reference to a statement last week from activist investor TCI Fund Management, which called on Pichai to cut salaries and headcount through “aggressive action.”

Among the workforce, Pichai found himself on the defensive in September, as he was forced to explain the company’s changing position after years of supercharged growth. Executives said at the time that there would be small cuts, and they didn’t rule out layoffs.

At a more recent all-hands meeting, a number of questions regarding the potential for layoffs were highly rated by staffers on Google’s internal question-asking system called Dory. There were also questions about whether executives mismanaged headcount.

“It appears that we added 36k full-time role YoY, increasing headcount by about 24%,” one top-rated question read. “Many teams feel like they are losing headcount, not gaining it. Where did this headcount go? In hindsight, and given concerns around productivity, should we have hired so rapidly?”

Employees wanted details following the company’s latest earnings call and comments from CFO Ruth Porat regarding possible cuts.

One question read: “Can we get some more clarity on how we’re approaching headcount for 2023? Do we have any sense of how long we need to plan for difficult headwinds?”

Other questioners asked if employees “should expect any direct consequence to our teams, direction and/or compensation to reduced profits we saw in the earnings call” and wondered, “how are we going to achieve 20% more productivity? Will refocus be enough or are we expecting layoffs?”

Change to performance reviews

Furthering employee stress levels was a recent change to performance reviews and upcoming evaluation check-ins.

Earlier this year, Google said it was ditching its long-held practice of handing out lengthy promotion packets, which were long forms employees needed to fill out and that included reviews from bosses and co-workers. The company switched to a streamlined process it calls Googler Reviews and Development (GRAD).

A Google spokesperson said in an emailed statement that the GRAD system was launched “to help employee development, coaching, learning and career progression throughout the year,” adding that it “helps establish clear expectations and provide employees with regular feedback.”

Google said a new system would result in higher pay, but workers say the overhaul has left more room for ambiguity in ratings at a time when the company is looking for ways to cut costs.

The planned overhaul has already run into problems. The company decided to end its use of Betterworks, a program that was supposed to help with evaluating performance, employees told CNBC. Executives said they planned to instead use a home-grown tool, but the change has come uncomfortably close to expected year-end performance checks.

A guide titled “Support Check-Ins,” which are performance reviews targeting certain employees, began appearing in internal forums. The document, viewed by CNBC, says for those who receive the review, “the current performance trajectory is headed toward, or already is in, a lower rating.”

Three steps are recommended for check-ins. The first directs workers to “breathe,” before taking in managers’ feedback. Second is, “understand the feedback,” and third is to “devise a plan.” The document says check-ins may affect 10% to 20% of staffers over the course of a year. 

Add it all up, and one big question employees are asking is -- will a bunch of small cuts turn into something grander in the future?

CNBC reported last month that employees and executives clashed on the topic of cutbacks to things like swag, travel and holiday celebrations. Workers complained about a lack of transparency around travel cuts and asked why the company wasn’t saving money by cutting executive salaries.

Google engineering leaders recently began cracking down on employees’ ability to access links to the internal meme generator called Memegen, a repository of user-generated memes that has long been a part of the company’s open culture.

Last month, a Google vice president of corporate engineering said employees need to remove Memegen links from their profile pages, internally known as “Moma.” Engineering directors said in an internal message that having a Memegen link on profiles “prevents Googlers from sharpening their focus.”

Workers naturally flocked to Memegen to make fun of the decision.



Google layoffs | Performance review

Google is toughening its performance reviews to identify 10,000 low performers. Employees fear layoffs are next

 

As if performance reviews weren’t already positioned to be stressful enough in a year shadowed by exhaustive debates around return to office, lost productivity, and the future of work, employees at Google are bracing for ramped up work anxiety as the Silicon Valley giant intensifies its performance review process for the end of the year.



Saturday, November 26, 2022

How to make a dough?

 

Dough Ingredients

Few ingredients make such an amazing dough.

  • Warm Water: Make sure it’s not too hot, or it’ll kill the yeast.
  • Sugar: This is food for the yeast, don’t leave it out
  • Yeast: Gives the dough it’s rise and elasticity
  • Flour: A good strong flour is necessary for good structure.
  • Salt: Essential ingredient in breads

Making Quick and Easy Dough

This is so easy!

  1. Mix: Combine the water, sugar and yeast, give it a little stir then let it sit for 5 minutes.
  2. Combine: In a large bowl combine the flour and salt to the yeast mixture. Stir till smooth.
  3. Rest: Let the dough rest for 10 min. It will rise some.
  4. Prepare: Prepare the dough for whatever you are doing and Let it sit another 10 min.
  5. Bake Bake 400 degrees for 15-20 minutes